Generate them all from the Uniform distribution and then transform them to the distribution of your choice. Cheers, Andrew
On 25 Apr 2017, 1:00 PM +1000, Said Ali Shah via R-sig-mixed-models <r-sig-mixed-models at r-project.org>, wrote:
i am conducting a simulation study regarding sample size using multilevel models for longitudinal design, and want to see the effect of non-normal level-II errors now the question is 1. whether i should generate the level-II errors from normal distribution after specifying parameters which are required for the model and then transform these normal errors to non-normal errors? if yes then how to transform them to exponential and log-normal distribution2. i should generate these errors separately from normal as well as from exponential and log normal distributions. keep in mind that both results i.e., for normal and non-normal errors are required. Thanks in advance Regards, Said Ali Shah [[alternative HTML version deleted]]
_______________________________________________ R-sig-mixed-models at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models