I wonder if there is a simple way of calculating an achieved power for a mixed-effects model. The fixed effects are the intercept and a slope. The random effect is for the intercept at the two levels ID and User/ID.
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.Sign up to join this community
The simplest way is probably estimating the design effect, and then use that to factor the sample size back down to what is usually called "effective sample size." Then you can proceed to use that new number to compute power as if the participants were drawn using simple random sampling.
If you already have the data in hand, you can also record the regression estimates of the fixed effect as well as the variance estimates of the random effects and the residual from your mixed-effect regression model. Afterwards, set up a simulation to recreate the data set and observe the p-values of interest for many times, compile the percent of runs that end up with a rejections of the null hypothesis, and that would be your power.