Added a few .ado (raschpower)
This commit is contained in:
@ -246,6 +246,8 @@ par(mfrow=c(1,1))
|
||||
#----------------------------------------------------------------------------#
|
||||
##############################################################################
|
||||
|
||||
#### CALCULER LA PUISSANCE THEORIQUE AVEC RASCHPOWER
|
||||
|
||||
## Proportion of rejected h0 per dif value in h1 scenarios by DIF size // eff.size positive
|
||||
|
||||
res.null <- res.dat[res.dat$eff.size>0,]
|
||||
@ -262,7 +264,7 @@ res.null5 <- res.dat[res.dat$eff.size>0 & res.dat$dif.size==0.5,]
|
||||
points(y=res.null5$h0.rejected.p,x=rep(5,nrow(res.null5)),col='#053305',pch=3)
|
||||
|
||||
|
||||
############# By N
|
||||
############# By N // EFF SIZE POSITIVE
|
||||
|
||||
####### N=100
|
||||
|
||||
@ -295,6 +297,32 @@ res.null5 <- res.dat[res.dat$eff.size>0 & res.dat$dif.size==0.5 & res.dat$N==300
|
||||
points(y=res.null5$h0.rejected.p,x=rep(5,nrow(res.null5)),col='#053305',pch=3)
|
||||
|
||||
|
||||
############# By N // EFF SIZE NEGATIVE
|
||||
|
||||
####### N=100
|
||||
|
||||
res.null <- res.dat[res.dat$eff.size<0 & res.dat$N==100,]
|
||||
boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2,4,2,3),xlab='DIF size',ylab='H0 rejection proportion in target scenario')
|
||||
res.null0 <- res.dat[res.dat$eff.size<0 & res.dat$dif.size==0 & res.dat$N==100,]
|
||||
points(y=res.null0$h0.rejected.p,x=rep(3,nrow(res.null0)),col='darkblue',pch=3)
|
||||
res.null3 <- res.dat[res.dat$eff.size<0 & res.dat$dif.size==-0.3 & res.dat$N==100,]
|
||||
points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3)
|
||||
res.null5 <- res.dat[res.dat$eff.size<0 & res.dat$dif.size==-0.5 & res.dat$N==100,]
|
||||
points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3)
|
||||
|
||||
|
||||
####### N=300 // DIF à 0.5 - QUELS SONT LES SCENARIOS EN HAUT
|
||||
|
||||
res.null <- res.dat[res.dat$eff.size<0 & res.dat$N==300,]
|
||||
boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2,4,2,3),xlab='DIF size',ylab='H0 rejection proportion in target scenario')
|
||||
res.null0 <- res.dat[res.dat$eff.size<0 & res.dat$dif.size==0 & res.dat$N==300,]
|
||||
points(y=res.null0$h0.rejected.p,x=rep(3,nrow(res.null0)),col='darkblue',pch=3)
|
||||
res.null3 <- res.dat[res.dat$eff.size<0 & res.dat$dif.size==-0.3 & res.dat$N==300,]
|
||||
points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3)
|
||||
res.null5 <- res.dat[res.dat$eff.size<0 & res.dat$dif.size==-0.5 & res.dat$N==300,]
|
||||
points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3)
|
||||
|
||||
|
||||
##############################################################################
|
||||
#----------------------------------------------------------------------------#
|
||||
########################## SYSTEMATIC ERROR BOXPLOTS #########################
|
||||
|
Reference in New Issue
Block a user