|
|
@ -1,25 +1,3 @@
|
|
|
|
pch=17,col='#9b6541')
|
|
|
|
|
|
|
|
mean.A <- sapply(c(100,200,300),function(x) mean(plot.dat[plot.dat$scenario=="9A" & plot.dat$N==x,]$h0.rejected.p))
|
|
|
|
|
|
|
|
lines(unique(plot.dat[plot.dat$scenario.type=="A",]$N),mean.A,lty=4,col='#1a342b')
|
|
|
|
|
|
|
|
points(unique(plot.dat[plot.dat$scenario.type=="A",]$N),mean.A,
|
|
|
|
|
|
|
|
pch=17,col='#1a342b')
|
|
|
|
|
|
|
|
mean.A <- sapply(c(100,200,300),function(x) mean(plot.dat[plot.dat$scenario=="11A" & plot.dat$N==x,]$h0.rejected.p))
|
|
|
|
|
|
|
|
lines(unique(plot.dat[plot.dat$scenario.type=="A",]$N),mean.A,lty=4,col='#c0c23b')
|
|
|
|
|
|
|
|
points(unique(plot.dat[plot.dat$scenario.type=="A",]$N),mean.A,
|
|
|
|
|
|
|
|
pch=17,col='#c0c23b')
|
|
|
|
|
|
|
|
## Plot 1 - baseline scenarios vs theoretical power
|
|
|
|
|
|
|
|
par(mfrow=c(1,2))
|
|
|
|
|
|
|
|
# theoretical
|
|
|
|
|
|
|
|
plot.dat <- res.dat[res.dat$scenario %in% sapply(c('A','B','C','D','E'),function(x) paste0(1:4,x)),]
|
|
|
|
|
|
|
|
plot(unique(plot.dat[plot.dat$scenario.type=="A",]$N),rep(unique(plot.dat[plot.dat$scenario.type=="A",]$theoretical.power),3),
|
|
|
|
|
|
|
|
xlab='N',ylab='Theoretical power',
|
|
|
|
|
|
|
|
xaxt='n',yaxt='n',type='l',xlim=c(100,300),ylim=c(0,1),lty=4,col='#03a18a')
|
|
|
|
|
|
|
|
axis(1,c(100,200,300))
|
|
|
|
|
|
|
|
axis(2,seq(0,1,0.1))
|
|
|
|
|
|
|
|
lines(unique(plot.dat[plot.dat$scenario %in% c("1B",'1D'),]$N),
|
|
|
|
|
|
|
|
unique(plot.dat[plot.dat$scenario %in% c("1B",'1D'),]$theoretical.power),col='#c0c23b',lty=4)
|
|
|
|
|
|
|
|
lines(unique(plot.dat[plot.dat$scenario %in% c("2B",'2D'),]$N),
|
|
|
|
|
|
|
|
unique(plot.dat[plot.dat$scenario %in% c("2B",'2D'),]$theoretical.power),col='#c0c23b',lty=4)
|
|
|
|
|
|
|
|
lines(unique(plot.dat[plot.dat$scenario %in% c("3B",'3D'),]$N),
|
|
|
|
lines(unique(plot.dat[plot.dat$scenario %in% c("3B",'3D'),]$N),
|
|
|
|
unique(plot.dat[plot.dat$scenario %in% c("3B",'3D'),]$theoretical.power),col='#a12471',lty=4)
|
|
|
|
unique(plot.dat[plot.dat$scenario %in% c("3B",'3D'),]$theoretical.power),col='#a12471',lty=4)
|
|
|
|
lines(unique(plot.dat[plot.dat$scenario %in% c("4B",'4D'),]$N),
|
|
|
|
lines(unique(plot.dat[plot.dat$scenario %in% c("4B",'4D'),]$N),
|
|
|
@ -510,3 +488,25 @@ legend=c("Scenario A",
|
|
|
|
"Scenario 3-4 / B-D",
|
|
|
|
"Scenario 3-4 / B-D",
|
|
|
|
"Scenario 1-2 / C-E",
|
|
|
|
"Scenario 1-2 / C-E",
|
|
|
|
"Scenario 3-4 / C-E"),cex=0.7)
|
|
|
|
"Scenario 3-4 / C-E"),cex=0.7)
|
|
|
|
|
|
|
|
library(TAM)
|
|
|
|
|
|
|
|
library(doMC)
|
|
|
|
|
|
|
|
library(parallel)
|
|
|
|
|
|
|
|
library(pbmcapply)
|
|
|
|
|
|
|
|
library(funprog)
|
|
|
|
|
|
|
|
library(dplyr)
|
|
|
|
|
|
|
|
library(readxl)
|
|
|
|
|
|
|
|
aaaa <- read_excel("/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N50/out/8A_50.xls")
|
|
|
|
|
|
|
|
aaaa
|
|
|
|
|
|
|
|
mean(aaaa$beta)
|
|
|
|
|
|
|
|
mean(aaaa$dif1_1)
|
|
|
|
|
|
|
|
mean(aaaa$dif1_2)
|
|
|
|
|
|
|
|
mean(aaaa$dif1_3)
|
|
|
|
|
|
|
|
mean(aaaa$dif1_3,na.rm = T)
|
|
|
|
|
|
|
|
mean(aaaa$item1_1,na.rm = T)
|
|
|
|
|
|
|
|
aaaa <- read_excel("/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N50/out/10A_50.xls")
|
|
|
|
|
|
|
|
mean(aaaa$beta)
|
|
|
|
|
|
|
|
mean(aaaa$dif1_3,na.rm = T)
|
|
|
|
|
|
|
|
mean(aaaa$dif2_3,na.rm = T)
|
|
|
|
|
|
|
|
mean(aaaa$dif1_3,na.rm = T)
|
|
|
|
|
|
|
|
mean(aaaa$dif1_1,na.rm = T)
|
|
|
|
|
|
|
|
aaaa
|
|
|
|