Open ncullen93 opened 2 years ago
Thanks, Nick.
Something like this would be very useful, but I don't think CRAN would allow a reference to ADNIMERGE (since it's not on CRAN). Maybe demo with some other dataset instead?
It's also problematic to have vignettes that take a long time to run, but it looks like others have thought about solutions to that problem: https://www.kloppenborg.ca/2021/06/long-running-vignettes/
Mike
Hey Mike,
Just wanted to throw in a little example code that could maybe turn into a vignette. This example uses ADNI data to grab pilot estimates of covariance, etc from an lme model, then simulates data based on those estimates and calculates power to detect a treatment effect over 1000 trials. This is compared to the closed-form estimate from longpower. I think it's a great way to validate the formulas and show how power and such can also be calculated using simulation which is more flexible.