diff --git a/.gitignore b/.gitignore index 8f8d0f4..a52f3bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ *.csv *.xls .Rproj.user +*.RData +*.Rhistory diff --git a/RProject/.RData b/RProject/.RData index b83f6ee..c7adf65 100644 Binary files a/RProject/.RData and b/RProject/.RData differ diff --git a/RProject/.Rhistory b/RProject/.Rhistory index 5839882..4546bc6 100644 --- a/RProject/.Rhistory +++ b/RProject/.Rhistory @@ -1,262 +1,149 @@ -res.null0 <- res.dat[res.dat$eff.size==0 & res.dat$dif.size==0,] -points(y=res.null0$h0.rejected.p,x=rep(1,nrow(res.null0)),col='gray',pch=3) -res.null3 <- res.dat[res.dat$eff.size==0 & res.dat$dif.size==0.3,] -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,] -points(y=res.null5$h0.rejected.p,x=rep(3,nrow(res.null5)),col='#053305',pch=3) -## Proportion of rejected h0 per dif value in h0 scenarios (A) by DIF size (1 item) -par(mfrow=c(2,2)) -# 0 item -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) -points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) -# 1 item -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==1,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 1 item',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -# 2 items -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -# 3 items -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==3,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 3 items',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -par(mfrow=c(1,1)) -par(mfrow=c(2,2)) -# 0 item -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0 & res.dat$J==4,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) -points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) -# 1 item -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==1 & res.dat$J==4,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 1 item',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -# 2 items -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2 & res.dat$J==4,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -par(mfrow=c(1,1)) -par(mfrow=c(2,2)) -# 0 item -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0 & res.dat$J==7,] -nrow(res.null) -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) -points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) -# 2 items -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2 & res.dat$J==7,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -# 3 items -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==3 & res.dat$J==7,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 3 items',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -par(mfrow=c(1,1)) -par(mfrow=c(2,2)) -# 0 item -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0 & res.dat$J==7,] -nrow(res.null) -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) -points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) -# 2 items -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2 & res.dat$J==7,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -# 3 items -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==3 & res.dat$J==7,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 3 items',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -par(mfrow=c(1,1)) -par(mfrow=c(2,2)) -# 0 item -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0 & res.dat$J==4,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) -points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) -# 1 item -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==1 & res.dat$J==4,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 1 item',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -# 2 items -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2 & res.dat$J==4,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -par(mfrow=c(1,1)) -par(mfrow=c(2,2)) -# 0 item -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0 & res.dat$J==7,] -nrow(res.null) -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) -points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) -# 2 items -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2 & res.dat$J==7,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -# 3 items -res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==3 & res.dat$J==7,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2,3),xlab='DIF size', -ylab='H0 rejection proportion in target scenario',main='DIF on 3 items',ylim=c(0,1)) -res.null3 <- res.null[res.null$dif.size==0.3,] -points(y=res.null3$h0.rejected.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null5 <- res.null[res.null$dif.size==0.5,] -points(y=res.null5$h0.rejected.p,x=rep(2,nrow(res.null5)),col='#053305',pch=3) -par(mfrow=c(1,1)) -# Overall -boxplot(beta.same.sign.truebeta.p~dif.size,data=res.dat,col=c(2,3),xlab='DIF size', -ylab='Proportion of estimates with same sign as true value in target scenario',main='DIF on 3 items',ylim=c(0,1)) -res.null3 <- res.dat[res.dat$dif.size==-0.5,] -points(y=res.null3$beta.same.sign.truebeta.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null3 <- res.dat[res.dat$dif.size==0.5,] -points(y=res.null3$beta.same.sign.truebeta.p,x=rep(5,nrow(res.null3)),col='#590b0c',pch=3) -res.null3 <- res.dat[res.dat$dif.size==-0.3,] -points(y=res.null3$beta.same.sign.truebeta.p,x=rep(2,nrow(res.null3)),col='#053305',pch=3) -res.null3 <- res.dat[res.dat$dif.size==0.3,] -points(y=res.null3$beta.same.sign.truebeta.p,x=rep(4,nrow(res.null3)),col='#053305',pch=3) -res.null3 <- res.dat[res.dat$dif.size==0,] -points(y=res.null3$beta.same.sign.truebeta.p,x=rep(3,nrow(res.null3)),col='gray',pch=3) -#### Create data.frame -results <- c(sapply(1:4,function(x) paste0(x,c('A','B','C','D','E'))),sapply(5:9,function(x) paste0(x,c('A','B','C','D','E','F','G')))) -results2 <- c(sapply(10:20,function(x) paste0(x,c('A','B','C','D','E','F','G')))) -results <- c(sapply(c(100,200,300),function(x) paste0(results,'_',x))) -results2 <- c(sapply(c(100,200,300),function(x) paste0(results2,'_',x))) -results <- sort(results) -results2 <- sort(results2) -results <- c(results,results2) -#### Compiler function -compile_simulation <- function(scenario) { -name <- as.numeric(gsub("[^0-9.-]", "", substr(scenario,start=0,stop=2))) -if (substr(scenario,start=nchar(scenario)-2,stop=nchar(scenario))=="100" & name<=4) { -s <- read.csv(paste0('/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_',scenario,'.csv')) +muB=10 +kappa=1 +sd=10 +alpha=0.05 +beta=0.20 +(nB=(1+1/kappa)*(sd*(qnorm(1-alpha/2)+qnorm(1-beta))/(muA-muB))^2) +ceiling(nB) # 63 +z=(muA-muB)/(sd*sqrt((1+1/kappa)/nB)) +(Power=pnorm(z-qnorm(1-alpha/2))+pnorm(-z-qnorm(1-alpha/2))) +muA=5 +muB=10 +kappa=1 +sd=10 +alpha=0.05 +beta=0.20 +(nB=(1+1/kappa)*(sd*(qnorm(1-alpha/2)+qnorm(1-beta))/(muA-muB))^2) +ceiling(nB) # 63 +z=(muA-muB)/(sd*sqrt((1+1/kappa)/nB)) +(Power=pnorm(z-qnorm(1-alpha/2))+pnorm(-z-qnorm(1-alpha/2))) +-1*(-0.49-0.47) +-1*(-1.69-0.95)+(-0.49-0.47) +-1*(-0.49-0.47)-0.49 +-1*(-0.49-0.47)-1.69 +-1*(-0.49-0.47)-(1.69-0.49) +3.35-1.69 +library(TAM) +library(doMC) +library(parallel) +library(pbmcapply) +library(funprog) +library(dplyr) +lastChar <- function(str){ +substr(str, nchar(str)-2, nchar(str)) } -if (substr(scenario,start=nchar(scenario)-2,stop=nchar(scenario))=="100" & name>4) { -s <- read.csv(paste0('/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_',scenario,'_nodif.csv')) +pcm_analysis <- function(df=NULL,treatment='TT',irtmodel='PCM2',method='MML') { +nbitems <- sum(sapply(1:20,function(x) paste0('item',x)) %in% colnames(df)) +resp <- df[,sapply(seq(1,nbitems),function(x) paste0('item',x))] +if (method=='MML') { +tam1 <- tam.mml(resp=resp,Y=df[,treatment],irtmodel = irtmodel,est.variance = T,verbose=F) } -if (substr(scenario,start=nchar(scenario)-2,stop=nchar(scenario))=="200" & name<=4) { -s <- read.csv(paste0('/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_',scenario,'.csv')) +if (method=='JML') { +tam1 <- tam.jml(resp=resp,group=1+df[,treatment]) } -if (substr(scenario,start=nchar(scenario)-2,stop=nchar(scenario))=="200" & name>4) { -s <- read.csv(paste0('/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_',scenario,'_nodif.csv')) +if (method!='MML' & method!='JML') { +stop('Invalid method. Please choose among MML or JML') } -if (substr(scenario,start=nchar(scenario)-2,stop=nchar(scenario))=="300" & name<=4) { -s <- read.csv(paste0('/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_',scenario,'.csv')) +return(tam1) } -if (substr(scenario,start=nchar(scenario)-2,stop=nchar(scenario))=="300" & name>4) { -s <- read.csv(paste0('/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_',scenario,'_nodif.csv')) +replicate_pcm_analysis_m4 <- function(df=NULL,treatment='TT',irtmodel='PCM2',method='MML',sequence='replication',eff.size=0,difsize=NA,nbdif=0) { +nbitems <- sum(sapply(1:20,function(x) paste0('item',x)) %in% colnames(df)) +resp <- df[,sapply(seq(1,nbitems),function(x) paste0('item',x))] +truebeta <- eff.size +if (method=='MML') { +n <- max(df[,sequence]) +print(n) +tam1 <- lapply(seq(1,n), +function(x) pcm_analysis(df=df[df[,sequence]==x,],treatment=treatment,irtmodel=irtmodel) +) } -if (unique(s$J)==4) { -if (unique(s$M)==2) { -a <- data.frame(m.item1=mean(s$item1),m.item2=mean(s$item2),m.item3=mean(s$item3),m.item4=mean(s$item4)) +listitems <- c(sapply(c('_1','_2','_3'),function(x) paste0(sapply(seq(1,nbitems),function(x) paste0('item',x)),x))) +returndat <- data.frame(matrix(nrow=max(df[,sequence]),ncol=length(listitems))) +colnames(returndat) <- listitems +for (s in seq(1,max(df[,sequence]))) { +for (k in seq(1,nbitems)) { +returndat[s,paste0('item',k,'_1')] <- tam1[[s]]$item[k,'AXsi_.Cat1'] +returndat[s,paste0('item',k,'_2')] <- tam1[[s]]$item[k,'AXsi_.Cat2']-tam1[[s]]$item[k,'AXsi_.Cat1'] +returndat[s,paste0('item',k,'_3')] <- tam1[[s]]$item[k,'AXsi_.Cat3']-tam1[[s]]$item[k,'AXsi_.Cat2'] +} +} +returndat <- returndat[,sort_by(listitems, lastChar)] +returndat$beta <- sapply(seq(1,max(df[,sequence])),function(k) tam1[[k]]$beta[2]) +returndat$se.beta <- 1.413612*sapply(seq(1,max(df[,sequence])),function(k) tam.se(tam1[[k]])$beta$se.Dim1[2] ) +returndat$low.ci.beta <- returndat$beta-1.96*returndat$se.beta +returndat$high.ci.beta <- returndat$beta+1.96*returndat$se.beta +returndat$true.value.in.ci <- 1*(truebeta>returndat$low.ci.beta & truebetareturndat$high.ci.beta) +if (truebeta==0) { +returndat$beta.same.sign.truebeta <- NA } else { -a <- data.frame(m.item1_1=mean(s$item1_1),m.item1_2=mean(s$item1_2),m.item1_3=mean(s$item1_3), -m.item2_1=mean(s$item2_1),m.item2_2=mean(s$item2_2),m.item2_3=mean(s$item2_3), -m.item3_1=mean(s$item3_1),m.item3_2=mean(s$item3_2),m.item3_3=mean(s$item3_3), -m.item4_1=mean(s$item4_1),m.item4_2=mean(s$item4_2),m.item4_3=mean(s$item4_3) +returndat$beta.same.sign.truebeta <- 1*(sign(truebeta)==sign(returndat$beta)) +} +returndat2 <- data.frame(J=rep(nbitems,max(df[,sequence])), +M=1+max(df$item1), +N=nrow(df[df$replication==1,])/2, +eff.size=truebeta, +dif.size= difsize, +nb.dif= nbdif ) +returndat <- cbind(returndat2,returndat) +return(returndat) } -} else { -if (unique(s$M)==2) { -a <- data.frame(m.item1=mean(s$item1),m.item2=mean(s$item2),m.item3=mean(s$item3),m.item4=mean(s$item4), -m.item5=mean(s$item5),m.item6=mean(s$item6),m.item7=mean(s$item7)) -} else { -a <- data.frame(m.item1_1=mean(s$item1_1),m.item1_2=mean(s$item1_2),m.item1_3=mean(s$item1_3), -m.item2_1=mean(s$item2_1),m.item2_2=mean(s$item2_2),m.item2_3=mean(s$item2_3), -m.item3_1=mean(s$item3_1),m.item3_2=mean(s$item3_2),m.item3_3=mean(s$item3_3), -m.item4_1=mean(s$item4_1),m.item4_2=mean(s$item4_2),m.item4_3=mean(s$item4_3), -m.item5_1=mean(s$item5_1),m.item5_2=mean(s$item5_2),m.item5_3=mean(s$item5_3), -m.item6_1=mean(s$item6_1),m.item6_2=mean(s$item6_2),m.item6_3=mean(s$item6_3), -m.item7_1=mean(s$item7_1),m.item7_2=mean(s$item7_2),m.item7_3=mean(s$item7_3) +replicate_pcm_analysis_m2 <- function(df=NULL,treatment='TT',irtmodel='PCM2',method='MML',sequence='replication',eff.size=0,difsize=NA,nbdif=0) { +truebeta <- eff.size +nbitems <- sum(sapply(1:20,function(x) paste0('item',x)) %in% colnames(df)) +resp <- df[,sapply(seq(1,nbitems),function(x) paste0('item',x))] +if (method=='MML') { +n <- max(df[,sequence]) +print(n) +tam1 <- lapply(seq(1,n), +function(x) pcm_analysis(df=df[df[,sequence]==x,],treatment=treatment,irtmodel=irtmodel) ) } +listitems <- sapply(seq(1,nbitems),function(x) paste0('item',x)) +returndat <- data.frame(matrix(nrow=max(df[,sequence]),ncol=length(listitems))) +colnames(returndat) <- listitems +for (s in seq(1,max(df[,sequence]))) { +for (k in seq(1,nbitems)) { +returndat[s,paste0('item',k)] <- tam1[[s]]$xsi$xsi[k] } -zz <- substr(scenario,start=0,stop=nchar(scenario)-4) -b <- data.frame(scenario=zz, -scenario.type=substr(zz,start=nchar(zz),stop=nchar(zz)), -N=substr(scenario,start=nchar(scenario)-2,stop=nchar(scenario)), -J=unique(s$J), -M=unique(s$M), -eff.size=unique(s$eff.size), -nb.dif=unique(s$nb.dif), -dif.size=unique(s$dif.size) +} +returndat$beta <- sapply(seq(1,max(df[,sequence])),function(k) tam1[[k]]$beta[2]) +returndat$se.beta <- 1.413612*sapply(seq(1,max(df[,sequence])),function(k) tam.se(tam1[[k]])$beta$se.Dim1[2] ) +returndat$low.ci.beta <- returndat$beta-1.96*returndat$se.beta +returndat$high.ci.beta <- returndat$beta+1.96*returndat$se.beta +returndat$true.value.in.ci <- 1*(truebeta>returndat$low.ci.beta & truebetareturndat$high.ci.beta) +if (truebeta==0) { +returndat$beta.same.sign.truebeta <- NA +} else { +returndat$beta.same.sign.truebeta <- 1*(sign(truebeta)==sign(returndat$beta)) +} +returndat2 <- data.frame(J=rep(nbitems,max(df[,sequence])), +M=1+max(df$item1), +N=nrow(df[df$replication==1,])/2, +eff.size=truebeta, +dif.size= difsize, +nb.dif= nbdif ) -z <- data.frame(m.beta=mean(s$beta), -se.empirical.beta=sd(s$beta), -se.analytical.beta=mean(s$se.beta), -m.low.ci.beta=mean(s$low.ci.beta), -m.high.ci.beta=mean(s$high.ci.beta), -true.value.in.ci.p=mean(s$true.value.in.ci), -h0.rejected.p=mean(s$h0.rejected), -beta.same.sign.truebeta.p=mean(s$beta.same.sign.truebeta,na.rm=T), -beta.same.sign.truebeta.signif.p=mean(s[s$h0.rejected==1,]$beta.same.sign.truebeta,na.rm=T)) -d <- cbind(b,a,z) -d$prop. -return(d) +returndat <- cbind(returndat2,returndat) +return(returndat) } -#### Compiled results -res.dat <- compile_simulation('1A_100') -for (x in results[seq(2,length(results))]) { -y <- compile_simulation(x) -res.dat <- bind_rows(res.dat,y) +replicate_pcm_analysis<- function(df=NULL,treatment='TT',irtmodel='PCM2',method='MML',sequence='replication',eff.size=0,difsize=NA,nbdif=0) { +j <- max(df$item1) +if(j==1) { +return(replicate_pcm_analysis_m2(df=df,treatment=treatment,irtmodel=irtmodel,method=method,sequence=sequence,eff.size=eff.size,difsize=difsize,nbdif=nbdif)) +} else { +return(replicate_pcm_analysis_m4(df=df,treatment=treatment,irtmodel=irtmodel,method=method,sequence=sequence,eff.size=eff.size,difsize=difsize,nbdif=nbdif)) } -library(TAM) -library(doMC) -library(parallel) -library(pbmcapply) -library(funprog) -library(dplyr) -#### Create data.frame +} +registerDoMC(4) +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_20A_100.csv') +res_nodif <- pbmclapply(c('dat1'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_20A_100_nodif.csv') +res_nodif[[1]] +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulationss/Analysis/NoDIF/N100/scenario_20A_100_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_20A_100_nodif.csv') results <- c(sapply(1:4,function(x) paste0(x,c('A','B','C','D','E'))),sapply(5:9,function(x) paste0(x,c('A','B','C','D','E','F','G')))) results2 <- c(sapply(10:20,function(x) paste0(x,c('A','B','C','D','E','F','G')))) results <- c(sapply(c(100,200,300),function(x) paste0(results,'_',x))) @@ -346,63 +233,188 @@ res.dat[300:396,'nb.dif'] <- 3 res.dat.simple <- res.dat[,c(1:8,13,16:18)] res.dat.simple$m.beta <- round(res.dat.simple$m.beta,3) res.dat.simple -boxplot(beta.same.sign.truebeta.signif.p~dif.size,data=res.dat,col=c(2,3),xlab='DIF size', -ylab='Proportion of estimates with same sign as true value in target scenario',main='DIF on 3 items',ylim=c(0,1)) -res.null3 <- res.dat[res.dat$dif.size==-0.5,] -points(y=res.null3$beta.same.sign.truebeta.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null3 <- res.dat[res.dat$dif.size==0.5,] -points(y=res.null3$beta.same.sign.truebeta.p,x=rep(5,nrow(res.null3)),col='#590b0c',pch=3) -res.null3 <- res.dat[res.dat$dif.size==-0.3,] -points(y=res.null3$beta.same.sign.truebeta.p,x=rep(2,nrow(res.null3)),col='#053305',pch=3) -res.null3 <- res.dat[res.dat$dif.size==0.3,] -points(y=res.null3$beta.same.sign.truebeta.p,x=rep(4,nrow(res.null3)),col='#053305',pch=3) -res.null3 <- res.dat[res.dat$dif.size==0,] -points(y=res.null3$beta.same.sign.truebeta.p,x=rep(3,nrow(res.null3)),col='gray',pch=3) -boxplot(beta.same.sign.truebeta.signif.p~dif.size,data=res.dat,col=c(2,3),xlab='DIF size', -ylab='Proportion of estimates with same sign as true value in target scenario',main='DIF on 3 items',ylim=c(0,1)) -res.null3 <- res.dat[res.dat$dif.size==-0.5,] -points(y=res.null3$beta.same.sign.truebeta.signif.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) -res.null3 <- res.dat[res.dat$dif.size==0.5,] -points(y=res.null3$beta.same.sign.truebeta.signif.p,x=rep(5,nrow(res.null3)),col='#590b0c',pch=3) -res.null3 <- res.dat[res.dat$dif.size==-0.3,] -points(y=res.null3$beta.same.sign.truebeta.signif.p,x=rep(2,nrow(res.null3)),col='#053305',pch=3) -res.null3 <- res.dat[res.dat$dif.size==0.3,] -points(y=res.null3$beta.same.sign.truebeta.signif.p,x=rep(4,nrow(res.null3)),col='#053305',pch=3) -res.null3 <- res.dat[res.dat$dif.size==0,] -points(y=res.null3$beta.same.sign.truebeta.signif.p,x=rep(3,nrow(res.null3)),col='gray',pch=3) ## Proportion of rejected h0 per dif value in h0 scenarios (A) by DIF size -res.null <- res.dat[res.dat$eff.size!=0,] +res.null <- res.dat[res.dat$eff.size==0,] boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2,1),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.null0 <- res.dat[res.dat$eff.size==0 & res.dat$dif.size==0,] points(y=res.null0$h0.rejected.p,x=rep(3,nrow(res.null0)),col='gray',pch=3) -res.null3 <- res.dat[res.dat$eff.size!=0 & res.dat$dif.size==-0.3,] +res.null3 <- res.dat[res.dat$eff.size==0 & res.dat$dif.size==-0.3,] 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.null5 <- res.dat[res.dat$eff.size==0 & res.dat$dif.size==-0.5,] points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) -res.null <- res.dat[res.dat$eff.size>0,] -boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2,1),xlab='DIF size',ylab='H0 rejection proportion in target scenario') -res.null0 <- res.dat[res.dat$eff.size>0 & res.dat$dif.size==0,] -points(y=res.null0$h0.rejected.p,x=rep(3,nrow(res.null0)),col='gray',pch=3) -res.null3 <- res.dat[res.dat$eff.size>0 & res.dat$dif.size==-0.3,] +par(mfrow=c(2,2)) +# 0 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) +points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) +# 1 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==1,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 1 item',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] 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.null5 <- res.null[res.null$dif.size==-0.5,] points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) -res.null <- res.dat[res.dat$eff.size>0,] -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,] -points(y=res.null0$h0.rejected.p,x=rep(3,nrow(res.null0)),col='gray',pch=3) -res.null3 <- res.dat[res.dat$eff.size>0 & res.dat$dif.size==-0.3,] +# 2 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] 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.null5 <- res.null[res.null$dif.size==-0.5,] points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) -res.null <- res.dat[res.dat$eff.size>0,] -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,] -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,] +# 3 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==3,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 3 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] 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.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +par(mfrow=c(1,1)) +par(mfrow=c(2,2)) +# 0 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0 & res.dat$J==4,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) +points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) +# 1 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==1 & res.dat$J==4,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 1 item',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +# 2 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2 & res.dat$J==4,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +par(mfrow=c(1,1)) +par(mfrow=c(2,2)) +# 0 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0 & res.dat$J==7,] +nrow(res.null) +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) +points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) +# 2 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2 & res.dat$J==7,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +# 3 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==3 & res.dat$J==7,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 3 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +par(mfrow=c(1,1)) +par(mfrow=c(2,2)) +# 0 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0 & res.dat$N==100,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) +points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) +# 1 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==1 & res.dat$N==100,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 1 item',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +# 2 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2 & res.dat$N==100,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +# 3 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==3 & res.dat$N==100,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 3 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +par(mfrow=c(1,1)) +####### N=200 +par(mfrow=c(2,2)) +# 0 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0 & res.dat$N==200,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) +points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) +# 1 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==1 & res.dat$N==200,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 1 item',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +# 2 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2 & res.dat$N==200,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +# 3 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==3 & res.dat$N==200,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 3 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +par(mfrow=c(1,1)) +####### N=300 +par(mfrow=c(2,2)) +# 0 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==0 & res.dat$N==300,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='No DIF',ylim=c(0,1)) +points(y=res.null$h0.rejected.p,x=rep(1,nrow(res.null)),col='#590b0c',pch=3) +# 1 item +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==1 & res.dat$N==300,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 1 item',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +# 2 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==2 & res.dat$N==300,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 2 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] +points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +# 3 items +res.null <- res.dat[res.dat$eff.size==0 & res.dat$nb.dif==3 & res.dat$N==300,] +boxplot(h0.rejected.p~dif.size,data=res.null,col=c(3,2),xlab='DIF size', +ylab='H0 rejection proportion in target scenario',main='DIF on 3 items',ylim=c(0,1)) +res.null3 <- res.null[res.null$dif.size==-0.3,] +points(y=res.null3$h0.rejected.p,x=rep(2,nrow(res.null3)),col='#590b0c',pch=3) +res.null5 <- res.null[res.null$dif.size==-0.5,] points(y=res.null5$h0.rejected.p,x=rep(1,nrow(res.null5)),col='#053305',pch=3) +par(mfrow=c(1,1)) res.null <- res.dat[res.dat$eff.size>0,] 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,] @@ -415,6 +427,7 @@ res.null3 <- res.dat[res.dat$eff.size>0 & res.dat$dif.size==0.3,] points(y=res.null3$h0.rejected.p,x=rep(4,nrow(res.null3)),col='#590b0c',pch=3) 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) +####### 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,] @@ -427,6 +440,7 @@ 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(4,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(5,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,] @@ -449,10 +463,6 @@ res.null3 <- res.dat[res.dat$eff.size<0 & res.dat$dif.size==-0.3 & res.dat$N==10 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) -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(4,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(5,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') @@ -462,51 +472,41 @@ res.null3 <- res.dat[res.dat$eff.size<0 & res.dat$dif.size==-0.3 & res.dat$N==30 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) -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(4,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(5,nrow(res.null5)),col='#053305',pch=3) -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) -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) -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) -muA=5 -muB=10 -kappa=1 -sd=10 -alpha=0.05 -beta=0.20 -(nB=(1+1/kappa)*(sd*(qnorm(1-alpha/2)+qnorm(1-beta))/(muA-muB))^2) -ceiling(nB) # 63 -z=(muA-muB)/(sd*sqrt((1+1/kappa)/nB)) -(Power=pnorm(z-qnorm(1-alpha/2))+pnorm(-z-qnorm(1-alpha/2))) -muA=5 -muB=10 -kappa=1 -sd=10 -alpha=0.05 -beta=0.20 -(nB=(1+1/kappa)*(sd*(qnorm(1-alpha/2)+qnorm(1-beta))/(muA-muB))^2) -ceiling(nB) # 63 -z=(muA-muB)/(sd*sqrt((1+1/kappa)/nB)) -(Power=pnorm(z-qnorm(1-alpha/2))+pnorm(-z-qnorm(1-alpha/2))) +boxplot(true.value.in.ci.p~dif.size,data=res.dat,col=c(2,3),xlab='DIF size', +ylab='Proportion of true beta value in CI in target scenario',main='DIF on 3 items',ylim=c(0,1)) +res.null3 <- res.dat[res.dat$dif.size==-0.5,] +points(y=res.null3$true.value.in.ci.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) +res.null3 <- res.dat[res.dat$dif.size==0.5,] +points(y=res.null3$true.value.in.ci.p,x=rep(5,nrow(res.null3)),col='#590b0c',pch=3) +res.null3 <- res.dat[res.dat$dif.size==-0.3,] +points(y=res.null3$true.value.in.ci.p,x=rep(2,nrow(res.null3)),col='#053305',pch=3) +res.null3 <- res.dat[res.dat$dif.size==0.3,] +points(y=res.null3$true.value.in.ci.p,x=rep(4,nrow(res.null3)),col='#053305',pch=3) +res.null3 <- res.dat[res.dat$dif.size==0,] +points(y=res.null3$true.value.in.ci.p,x=rep(3,nrow(res.null3)),col='gray',pch=3) +# Overall +boxplot(beta.same.sign.truebeta.p~dif.size,data=res.dat,col=c(2,3),xlab='DIF size', +ylab='Proportion of estimates with same sign as true value in target scenario',main='DIF on 3 items',ylim=c(0,1)) +res.null3 <- res.dat[res.dat$dif.size==-0.5,] +points(y=res.null3$beta.same.sign.truebeta.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) +res.null3 <- res.dat[res.dat$dif.size==0.5,] +points(y=res.null3$beta.same.sign.truebeta.p,x=rep(5,nrow(res.null3)),col='#590b0c',pch=3) +res.null3 <- res.dat[res.dat$dif.size==-0.3,] +points(y=res.null3$beta.same.sign.truebeta.p,x=rep(2,nrow(res.null3)),col='#053305',pch=3) +res.null3 <- res.dat[res.dat$dif.size==0.3,] +points(y=res.null3$beta.same.sign.truebeta.p,x=rep(4,nrow(res.null3)),col='#053305',pch=3) +res.null3 <- res.dat[res.dat$dif.size==0,] +points(y=res.null3$beta.same.sign.truebeta.p,x=rep(3,nrow(res.null3)),col='gray',pch=3) +# Overall // H0 rejected +boxplot(beta.same.sign.truebeta.signif.p~dif.size,data=res.dat,col=c(2,3),xlab='DIF size', +ylab='Proportion of estimates with same sign as true value in target scenario',main='When H0 rejected',ylim=c(0,1)) +res.null3 <- res.dat[res.dat$dif.size==-0.5,] +points(y=res.null3$beta.same.sign.truebeta.signif.p,x=rep(1,nrow(res.null3)),col='#590b0c',pch=3) +res.null3 <- res.dat[res.dat$dif.size==0.5,] +points(y=res.null3$beta.same.sign.truebeta.signif.p,x=rep(5,nrow(res.null3)),col='#590b0c',pch=3) +res.null3 <- res.dat[res.dat$dif.size==-0.3,] +points(y=res.null3$beta.same.sign.truebeta.signif.p,x=rep(2,nrow(res.null3)),col='#053305',pch=3) +res.null3 <- res.dat[res.dat$dif.size==0.3,] +points(y=res.null3$beta.same.sign.truebeta.signif.p,x=rep(4,nrow(res.null3)),col='#053305',pch=3) +res.null3 <- res.dat[res.dat$dif.size==0,] +points(y=res.null3$beta.same.sign.truebeta.signif.p,x=rep(3,nrow(res.null3)),col='gray',pch=3) diff --git a/RProject/pcm.R b/RProject/pcm.R index d67760a..54b6b67 100644 --- a/RProject/pcm.R +++ b/RProject/pcm.R @@ -153,9 +153,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x))) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_1A_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_1A_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_1A_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_1A_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_1A_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_1A_300.csv') #### B: H1 TRUE / ES 0.2 @@ -165,9 +165,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = 0.2)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_1B_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_1B_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_1B_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_1B_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_1B_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_1B_300.csv') #### C: H1 TRUE / ES 0.4 @@ -177,9 +177,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = 0.4)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_1C_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_1C_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_1C_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_1C_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_1C_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_1C_300.csv') #### D: H1 TRUE / ES -0.2 @@ -189,9 +189,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = -0.2)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_1D_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_1D_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_1D_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_1D_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_1D_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_1D_300.csv') #### E: H1 TRUE / ES -0.4 @@ -201,9 +201,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = -0.4)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_1E_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_1E_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_1E_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_1E_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_1E_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_1E_300.csv') ###################################### Scenario 2: J=4 / M=4 @@ -216,9 +216,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x))) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_2A_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_2A_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_2A_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_2A_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_2A_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_2A_300.csv') #### B: H1 TRUE / ES 0.2 @@ -228,9 +228,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = 0.2)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_2B_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_2B_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_2B_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_2B_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_2B_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_2B_300.csv') #### C: H1 TRUE / ES 0.4 @@ -240,9 +240,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = 0.4)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_2C_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_2C_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_2C_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_2C_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_2C_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_2C_300.csv') #### D: H1 TRUE / ES -0.2 @@ -252,9 +252,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = -0.2)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_2D_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_2D_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_2D_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_2D_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_2D_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_2D_300.csv') #### E: H1 TRUE / ES -0.4 @@ -264,9 +264,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = -0.4)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_2E_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_2E_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_2E_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_2E_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_2E_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_2E_300.csv') @@ -286,9 +286,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x))) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_3A_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_3A_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_3A_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_3A_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_3A_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_3A_300.csv') #### B: H1 TRUE / ES 0.2 @@ -298,9 +298,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = 0.2)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_3B_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_3B_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_3B_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_3B_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_3B_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_3B_300.csv') #### C: H1 TRUE / ES 0.4 @@ -310,9 +310,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = 0.4)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_3C_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_3C_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_3C_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_3C_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_3C_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_3C_300.csv') #### D: H1 TRUE / ES -0.2 @@ -322,9 +322,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = -0.2)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_3D_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_3D_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_3D_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_3D_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_3D_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_3D_300.csv') #### E: H1 TRUE / ES -0.4 @@ -334,9 +334,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = -0.4)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_3E_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_3E_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_3E_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_3E_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_3E_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_3E_300.csv') @@ -356,9 +356,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x))) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_4A_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_4A_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_4A_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_4A_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_4A_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_4A_300.csv') #### B: H1 TRUE / ES 0.2 @@ -368,9 +368,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = 0.2)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_4B_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_4B_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_4B_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_4B_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_4B_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_4B_300.csv') #### C: H1 TRUE / ES 0.4 @@ -380,9 +380,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = 0.4)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_4C_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_4C_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_4C_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_4C_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_4C_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_4C_300.csv') #### D: H1 TRUE / ES -0.2 @@ -392,9 +392,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = -0.2)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_4D_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_4D_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_4D_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_4D_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_4D_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_4D_300.csv') #### E: H1 TRUE / ES -0.4 @@ -404,9 +404,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),eff.size = -0.4)) -write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N100/scenario_4E_100.csv') -write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N200/scenario_4E_200.csv') -write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/NoDIF/N300/scenario_4E_300.csv') +write.csv(res[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_4E_100.csv') +write.csv(res[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N200/scenario_4E_200.csv') +write.csv(res[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N300/scenario_4E_300.csv') ############################################################################## @@ -428,9 +428,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_5A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_5A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_5A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_5A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_5A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_5A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -441,9 +441,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_5B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_5B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_5B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_5B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_5B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_5B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -454,9 +454,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_5C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_5C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_5C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_5C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_5C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_5C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -467,9 +467,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_5D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_5D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_5D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_5D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_5D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_5D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -480,9 +480,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_5E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_5E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_5E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_5E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_5E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_5E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -493,9 +493,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_5F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_5F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_5F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_5F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_5F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_5F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -506,9 +506,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_5G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_5G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_5G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_5G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_5G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_5G_300_nodif.csv') @@ -530,9 +530,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_6A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_6A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_6A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_6A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_6A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_6A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -543,9 +543,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_6B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_6B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_6B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_6B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_6B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_6B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -556,9 +556,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_6C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_6C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_6C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_6C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_6C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_6C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -569,9 +569,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_6D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_6D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_6D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_6D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_6D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_6D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -582,9 +582,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_6E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_6E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_6E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_6E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_6E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_6E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -595,9 +595,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_6F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_6F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_6F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_6F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_6F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_6F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -608,9 +608,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_6G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_6G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_6G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_6G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_6G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_6G_300_nodif.csv') @@ -632,9 +632,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_7A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_7A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_7A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_7A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_7A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_7A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -645,9 +645,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_7B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_7B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_7B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_7B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_7B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_7B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -658,9 +658,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_7C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_7C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_7C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_7C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_7C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_7C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -671,9 +671,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_7D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_7D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_7D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_7D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_7D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_7D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -684,9 +684,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_7E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_7E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_7E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_7E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_7E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_7E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -697,9 +697,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_7F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_7F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_7F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_7F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_7F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_7F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -710,9 +710,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_7G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_7G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_7G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_7G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_7G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_7G_300_nodif.csv') @@ -735,9 +735,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_8A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_8A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_8A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_8A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_8A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_8A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -748,9 +748,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_8B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_8B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_8B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_8B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_8B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_8B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -761,9 +761,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_8C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_8C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_8C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_8C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_8C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_8C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -774,9 +774,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_8D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_8D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_8D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_8D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_8D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_8D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -787,9 +787,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_8E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_8E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_8E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_8E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_8E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_8E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -800,9 +800,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_8F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_8F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_8F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_8F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_8F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_8F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -813,9 +813,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_8G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_8G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_8G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_8G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_8G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_8G_300_nodif.csv') @@ -838,9 +838,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_9A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_9A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_9A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_9A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_9A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_9A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -851,9 +851,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_9B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_9B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_9B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_9B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_9B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_9B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -864,9 +864,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_9C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_9C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_9C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_9C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_9C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_9C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -877,9 +877,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_9D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_9D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_9D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_9D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_9D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_9D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -890,9 +890,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_9E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_9E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_9E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_9E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_9E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_9E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -903,9 +903,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_9F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_9F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_9F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_9F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_9F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_9F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -916,9 +916,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_9G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_9G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_9G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_9G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_9G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_9G_300_nodif.csv') @@ -940,9 +940,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_10A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_10A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_10A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_10A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_10A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_10A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -953,9 +953,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_10B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_10B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_10B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_10B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_10B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_10B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -966,9 +966,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_10C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_10C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_10C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_10C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_10C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_10C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -979,9 +979,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_10D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_10D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_10D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_10D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_10D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_10D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -992,9 +992,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_10E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_10E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_10E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_10E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_10E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_10E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1005,9 +1005,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_10F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_10F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_10F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_10F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_10F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_10F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1018,9 +1018,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_10G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_10G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_10G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_10G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_10G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_10G_300_nodif.csv') @@ -1042,9 +1042,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_11A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_11A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_11A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_11A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_11A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_11A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1055,9 +1055,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_11B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_11B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_11B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_11B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_11B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_11B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1068,9 +1068,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_11C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_11C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_11C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_11C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_11C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_11C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -1081,9 +1081,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_11D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_11D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_11D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_11D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_11D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_11D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -1094,9 +1094,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_11E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_11E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_11E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_11E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_11E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_11E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1107,9 +1107,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_11F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_11F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_11F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_11F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_11F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_11F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1120,9 +1120,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_11G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_11G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_11G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_11G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_11G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_11G_300_nodif.csv') @@ -1145,9 +1145,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_12A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_12A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_12A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_12A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_12A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_12A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1158,9 +1158,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_12B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_12B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_12B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_12B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_12B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_12B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1171,9 +1171,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_12C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_12C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_12C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_12C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_12C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_12C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -1184,9 +1184,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_12D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_12D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_12D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_12D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_12D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_12D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -1197,9 +1197,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_12E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_12E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_12E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_12E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_12E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_12E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1210,9 +1210,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_12F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_12F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_12F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_12F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_12F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_12F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1223,9 +1223,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_12G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_12G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_12G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_12G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_12G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_12G_300_nodif.csv') @@ -1248,9 +1248,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_13A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_13A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_13A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_13A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_13A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_13A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1261,9 +1261,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_13B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_13B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_13B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_13B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_13B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_13B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1274,9 +1274,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_13C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_13C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_13C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_13C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_13C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_13C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -1287,9 +1287,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_13D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_13D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_13D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_13D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_13D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_13D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -1300,9 +1300,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_13E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_13E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_13E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_13E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_13E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_13E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1313,9 +1313,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_13F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_13F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_13F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_13F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_13F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_13F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1326,9 +1326,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_13G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_13G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_13G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_13G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_13G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_13G_300_nodif.csv') @@ -1350,9 +1350,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_14A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_14A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_14A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_14A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_14A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_14A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1363,9 +1363,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_14B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_14B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_14B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_14B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_14B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_14B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1376,9 +1376,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_14C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_14C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_14C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_14C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_14C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_14C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -1389,9 +1389,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_14D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_14D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_14D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_14D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_14D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_14D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -1402,9 +1402,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_14E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_14E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_14E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_14E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_14E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_14E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1415,9 +1415,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_14F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_14F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_14F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_14F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_14F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_14F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1428,9 +1428,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_14G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_14G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_14G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_14G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_14G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_14G_300_nodif.csv') @@ -1452,9 +1452,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_15A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_15A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_15A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_15A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_15A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_15A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1465,9 +1465,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_15B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_15B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_15B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_15B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_15B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_15B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1478,9 +1478,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_15C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_15C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_15C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_15C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_15C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_15C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -1491,9 +1491,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_15D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_15D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_15D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_15D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_15D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_15D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -1504,9 +1504,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_15E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_15E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_15E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_15E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_15E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_15E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1517,9 +1517,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_15F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_15F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_15F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_15F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_15F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_15F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1530,9 +1530,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_15G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_15G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_15G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_15G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_15G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_15G_300_nodif.csv') @@ -1555,9 +1555,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_16A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_16A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_16A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_16A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_16A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_16A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1568,9 +1568,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_16B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_16B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_16B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_16B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_16B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_16B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1581,9 +1581,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_16C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_16C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_16C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_16C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_16C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_16C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -1594,9 +1594,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_16D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_16D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_16D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_16D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_16D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_16D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -1607,9 +1607,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_16E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_16E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_16E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_16E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_16E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_16E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1620,9 +1620,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_16F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_16F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_16F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_16F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_16F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_16F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1633,9 +1633,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_16G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_16G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_16G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_16G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_16G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_16G_300_nodif.csv') @@ -1658,9 +1658,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_17A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_17A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_17A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_17A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_17A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_17A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1671,9 +1671,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_17B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_17B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_17B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_17B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_17B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_17B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1684,9 +1684,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_17C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_17C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_17C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_17C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_17C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_17C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -1697,9 +1697,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_17D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_17D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_17D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_17D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_17D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_17D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -1710,9 +1710,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_17E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_17E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_17E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_17E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_17E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_17E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1723,9 +1723,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_17F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_17F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_17F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_17F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_17F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_17F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1736,9 +1736,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_17G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_17G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_17G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_17G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_17G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_17G_300_nodif.csv') @@ -1760,9 +1760,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_18A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_18A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_18A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_18A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_18A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_18A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1773,9 +1773,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_18B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_18B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_18B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_18B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_18B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_18B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1786,9 +1786,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_18C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_18C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_18C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_18C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_18C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_18C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -1799,9 +1799,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_18D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_18D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_18D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_18D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_18D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_18D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -1812,9 +1812,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_18E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_18E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_18E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_18E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_18E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_18E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1825,9 +1825,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_18F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_18F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_18F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_18F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_18F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_18F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1838,9 +1838,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.3,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_18G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_18G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_18G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_18G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_18G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_18G_300_nodif.csv') @@ -1862,9 +1862,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_19A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_19A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_19A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_19A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_19A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_19A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1875,9 +1875,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_19B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_19B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_19B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_19B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_19B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_19B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1888,9 +1888,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_19C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_19C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_19C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_19C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_19C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_19C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -1901,9 +1901,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_19D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_19D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_19D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_19D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_19D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_19D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -1914,9 +1914,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_19E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_19E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_19E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_19E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_19E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_19E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1927,9 +1927,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_19F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_19F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_19F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_19F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_19F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_19F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1940,9 +1940,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_19G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_19G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_19G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_19G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_19G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_19G_300_nodif.csv') @@ -1965,9 +1965,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_20A_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_20A_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_20A_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100/scenario_20A_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_20A_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_20A_300_nodif.csv') #### B: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -1978,9 +1978,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_20B_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_20B_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_20B_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_20B_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_20B_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_20B_300_nodif.csv') #### C: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -1991,9 +1991,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_20C_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_20C_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_20C_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_20C_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_20C_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_20C_300_nodif.csv') #### D: H1 TRUE / ES = 0.4 / DS = 0.3 @@ -2004,9 +2004,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = 0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_20D_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_20D_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_20D_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_20D_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_20D_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_20D_300_nodif.csv') #### E: H1 TRUE / ES = 0.4 / DS = -0.3 @@ -2017,9 +2017,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = 0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_20E_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_20E_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_20E_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_20E_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_20E_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_20E_300_nodif.csv') #### F: H1 TRUE / ES = 0.2 / DS = 0.3 @@ -2030,9 +2030,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.2)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_20F_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_20F_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_20F_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_20F_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_20F_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_20F_300_nodif.csv') #### G: H1 TRUE / ES = 0.2 / DS = -0.3 @@ -2043,9 +2043,9 @@ dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) res_nodif <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis(get(x),nbdif = 1,difsize = -0.5,eff.size = -0.4)) -write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N100/scenario_20G_100_nodif.csv') -write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N200/scenario_20G_200_nodif.csv') -write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulation/Analysis/DIF/N300/scenario_20G_300_nodif.csv') +write.csv(res_nodif[[1]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N100/scenario_20G_100_nodif.csv') +write.csv(res_nodif[[2]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N200/scenario_20G_200_nodif.csv') +write.csv(res_nodif[[3]],'/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N300/scenario_20G_300_nodif.csv') ############################################################################## diff --git a/Scripts/Analysis/DIF/pcm_dif.do b/Scripts/Analysis/DIF/pcm_dif.do index 92a52ea..2a22e60 100644 --- a/Scripts/Analysis/DIF/pcm_dif.do +++ b/Scripts/Analysis/DIF/pcm_dif.do @@ -296,6 +296,8 @@ putexcel A1=matrix(outmat), colnames ****** Scenarios with DIF on 2 items +* Load pcm.ado +adopath+"/home/corentin/Documents/These/Recherche/Simulations/Modules/" ** Scenario 9: J = 4 items / M = 2 modalities / DIF size 0.3 x2 local N = "100 200 300" @@ -427,7 +429,7 @@ forvalues k=1/1000 { local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)" } } - local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)" + local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4)" qui `constrnt' qui `constrnt2' qui `constrnt3' @@ -611,7 +613,7 @@ forvalues k=1/1000 { local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)" } } - local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)" + local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4)" qui `constrnt' qui `constrnt2' qui `constrnt3' @@ -666,12 +668,14 @@ putexcel A1=matrix(outmat), colnames *========================== -* Scenarios with : J=4 +* Scenarios with : J=7 *========================== ****** Scenarios with DIF on 2 items +* Load pcm.ado +adopath+"/home/corentin/Documents/These/Recherche/Simulations/Modules/" ** Scenario 13: J = 7 items / M = 2 modalities / DIF size 0.3 x2 local N = "100 200 300" @@ -803,7 +807,7 @@ forvalues k=1/1000 { local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)" } } - local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)" + local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4)" qui `constrnt' qui `constrnt2' qui `constrnt3' @@ -987,7 +991,7 @@ forvalues k=1/1000 { local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)" } } - local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)" + local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4)" qui `constrnt' qui `constrnt2' qui `constrnt3' @@ -1041,6 +1045,8 @@ putexcel A1=matrix(outmat), colnames ***** Scenarios with DIF on 3 items +* Load pcm.ado +adopath+"/home/corentin/Documents/These/Recherche/Simulations/Modules/" ** Scenario 17: J = 7 items / M = 2 modalities / DIF size 0.3 x3 local N = "100 200 300" @@ -1207,7 +1213,7 @@ forvalues k=1/1000 { local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)" } } - local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)" + local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4 5 6)" qui `constrnt' qui `constrnt2' qui `constrnt3' @@ -1440,7 +1446,7 @@ forvalues k=1/1000 { local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)" } } - local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)" + local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4 5 6)" qui `constrnt' qui `constrnt2' qui `constrnt3'