rpsychologist / powerlmm

powerlmm R package for power calculations for two- and three-level longitudinal multilevel/linear mixed models.
100 stars 12 forks source link

Simulating continous predictors at given level #12

Closed b1azk0 closed 6 years ago

b1azk0 commented 6 years ago

Hello, is there any way of simulating a dataset with (for example) 2 cont. predictors measured at different levels of the hierarchy?

What I'm trying to do here is computing simulated power for a continuous fixed effect given c(varying ICC, varying subject number, varying observation per subject).

I'd really appreciate some help with this

All the best!