lebebr01 / simglm

Simulate regression models
https://simglm.brandonlebeau.org/
Other
43 stars 12 forks source link

Unbalanced designs #102

Closed SondreNilsen closed 1 year ago

SondreNilsen commented 1 year ago

First of all, thank you for a great package.

I am trying to simulate data for a three-level design with unbalanced data. Simulating data with a three-level (balanced) structure is easy, thanks to you! However, I have not been able to tweak my code to simulate unbalanced data while retaining a given pre-determined total sample size at each level.

Is this possible?

Best, Sondre

lebebr01 commented 1 year ago

Thanks for your comment and interest in the package. Are you able to share any code to help me understand more fully what you currently have and what should be modified?