Skip to main content
. Author manuscript; available in PMC: 2013 Mar 7.
Published in final edited form as: Psychol Methods. 2011 Jun;16(2):116–126. doi: 10.1037/a0022657
 n<-153 # (Sample size-1)
 dfM1<-10 # degrees of freedom of M1
 dfM2<-12 # degrees of freedom of M2
 delta1<-dfM2*.033ˆ2 # define delta* in the null hypothesis
 delta2<-dfM2*.064ˆ2 # define delta** in the alternative hypothesis
 alpha<-.05
 cv<-qchisq(1-alpha,df=dfM2-dfM1,n*delta1) # Critical value under H0
 power<-1-pchisq(cv,df=dfM2-dfM1,ncp=n*delta2)
 print(power,digits=2)