ICTatRTI / PersonAlyticsPower

PersonAlyticsPower: Power Analysis and Simulation for PersonAlytics
0 stars 1 forks source link

check the final rescaling of simulated data #13

Open stueller opened 2 years ago

stueller commented 2 years ago

When yMean = 0 and the intercept in phase 1 = 0, simulated data have a mean in phase 1 slightly less than 0 which can affect the standardized parameter estimates. This results because the overall data are standardized, which will push the group and phase specific intercepts away from their input values, typically by a small amount. This results in a designCheck() plot that looks slightly off (see screenshot), but if parameter that were simulated as 0 are fixed to zero by the user via userFormula, the difference will be corrected for.

If changes are deemed necessary, look for ~line 600 in ployICT, with the comment # rescale y.

image