Following to the recent questions we had here.
I was hopping to know if anyone had come across or can share R code for performing a custom power analysis based on simulation for a linear model?
Later I would obviously like to extend it to more complex models, but lm seems to right place to start. Thanks.