From dc031bb1387edf42279eb20b28c9344872eafdc6 Mon Sep 17 00:00:00 2001 From: corentinchoisy Date: Fri, 26 Jan 2024 15:46:13 +0100 Subject: [PATCH] R analysis code complete --- Modules/pcm.sthlp | 167 ++ RProject/pcm.R | 1925 ++++++++++++++++++++++- Scripts/Analysis/NoDIF/pcm_nodif_100.do | 97 +- 3 files changed, 2121 insertions(+), 68 deletions(-) create mode 100644 Modules/pcm.sthlp diff --git a/Modules/pcm.sthlp b/Modules/pcm.sthlp new file mode 100644 index 0000000..dd7e2e5 --- /dev/null +++ b/Modules/pcm.sthlp @@ -0,0 +1,167 @@ +{smcl} +{* 2August2022}{...} +{hline} +help for {hi:pcm}{right:Jean-Benoit Hardouin, Myriam Blanchin} +{hline} + +{title:Estimation of the parameters of a Partial Credit Model (PCM) or a Rating Scale Model (RSM) and specific graphs} + +{title:Syntax for Rasch analysis} + +{p 8 14 2}{cmd:pcm} {it:varlist} [{it:if}] [{it:in}] +[, {cmdab:rsm} {cmdab:it:erate}({it:#}) {cmdab:model} {cmdab:diff:iculties}({it:matrix}) {cmdab:var:iance}({it:real}) {cmdab:minsize}({it:#}) +{cmdab:cont:inuous}({it:varlist}) {cmdab:cat:egorical}({ir:varlist}) +{cmdab:G:raphs} {cmdab:nographi:tems} {cmdab:dim:name}({it:string}) {cmdab:nocorr:ected} {cmdab:alpha}({it:#}) +{cmdab:filesave} {cmdab:extension}({it:string}) {cmdab:dirsave}({it:directory} {cmdab:docx}({it:string}) +{cmdab:genlt}({it:string}) {cmdab:geninf}({it:string}) {cmdab:rep:lace} + +{title:Syntax for Rasch equating} +{p 8 14 2}{cmd:pcm} {it:varlist} [{it:if}] [{it:in}] [, {cmdab:rsm} {cmdab:it:erate}({it:#}) {cmdab:model} {cmdab:diff:iculties}({it:matrix}) {cmdab:var:iance}({it:real}) {cmdab:minsize}({it:#}) {cmdab:G:raphs} {cmdab:dim:name}({it:string}) {cmdab:eqset1}({it:varlist}) {cmdab:eqset2}({it:varlist}) {cmdab:eqset1name}({it:string}) {cmdab:eqset2name}({it:string}) {cmdab:EQG:raph} {cmdab:eqaddset1}({it:#}) {cmdab:eqaddset2}({it:#}) {cmdab:eqmultset1}({it:#) {cmdab:eqmultset2}({it:#}) +{cmdab:eqwithci} {cmdab:eqgenscore}({it:string}) {cmdab:rep:lace} ] + + +{p 8 14 2}{it:varlist} is a list of two existing categorical variables or more. + +{title:Description} + +{p 4 8 2}{cmd:pcm} estimates the parameters of a Partial Credit Model (PCM) or of a Rating Scale Model (RSM). Parameters are estimated using Marginal Maximum Likelihood (MML). Several graphical representations can be easily obtained: comparison of the observed and theorical Item Characteristic Curves (ICC), Map difficulty parameters/Scores, results of the split tests, and information function (for the scale and by item). {cmd:pcm} allow equating two sets of items. + +{title:Options for a Rasch analysis} + +{p 4 8 2}{cmdab:rsm} estimates a Rating Scale Model instead of a Partial Credit Model. + +{p 4 8 2}{cmdab:it:erate} defines the maximal number of iterations of the maximisation algorithm. +By default, this number is fixed to 100. + +{p 4 8 2}{cmd:model} displays the outputs of the maximisation alogorithm . + +{p 4 8 2}{cmdab:diff:iculties}({it:matrix}) fixes the values of the difficulties parameters of the items (by default, these values are estimated). +The vector must be a matrix containing as many rows as items, and a column for each threshold parameter (number of answer categories minus 1). +A missing value (.) replaces unexisting difficulty paremeters in the matrix. + +{p 4 8 2}{cmdab:var:iance}({it:#}) fixes the value of the variance of the latent trait (by default, this value is estimated). + +{p 4 8 2}{cmdab:minsize}({it:#}) fixes the minimal value of the groups (30 individuals by default). + +{p 4 8 2}{cmdab:cont:inuous}({it:varlist}) defines a list of continuous variables explaining the latent trait. + +{p 4 8 2}{cmdab:cat:egorical}({it:varlist}) defines a list of categorical variables explaining the latent trait. + +{p 4 8 2}{cmdab:G:raphs} displays the graphs. + +{p 4 8 2}{cmdab:nographi:tems} avoids displaying the graphs by items. + +{p 4 8 2}{cmdab:dim:name}({it:string}) defines the name of the analysed dimension (this name appears on the graphs). + +{p 4 8 2}{cmdab:nocorr:ected} avoids using corrected latent trait estimates on the graphs. + +{p 4 8 2}{cmdab:alpha}({it:#}) defines the level of confidence of the interval presented on the graphs of residuals. + +{p 4 8 2}{cmdab:filesave} save the graph files. + +{p 4 8 2}{cmdab:extension}({it:string}) defines the extension of the graph files. + +{p 4 8 2}{cmdab:dirsave}({it:directory} defines the directory to save the graph files and the docx file. + +{p 4 8 2}{cmdab:docx}({it:string}) creates a docx file with the main results and graphs. + +{p 4 8 2}{cmdab:genlt}({it:string}) creates several variables. The new variables {it:string} contains Expected A Posteriori estimates of the latent trait and {it:string_se} their standard deviations. The new variable {it:string_corr} contains estimates of the latent traits allowing obtaining the closer estimations of the item-sum scores. The new variables {it:string_opt} contains estimated of the latent traits obtained by searching, for each observed item to maximize the probability to obtain the observed answer (the obtained value is the mean of all these estimates). + +{p 4 8 2}{cmd:geninf}({it:string}) contains the information associated for each individual. + +{p 4 8 2}{cmdab:rep:lace} specifies that the existing files or variables will be replaced. + +{title:Options for a Rasch equating} + + +{p 4 8 2}{cmdab:rsm} estimates a Rating Scale Model instead of a Partial Credit Model. + +{p 4 8 2}{cmdab:it:erate} defines the maximal number of iterations of the maximisation algorithm. +By default, this number is fixed to 100. + +{p 4 8 2}{cmd:model} displays the outputs of the maximisation alogorithm . + +{p 4 8 2}{cmdab:diff:iculties}({it:matrix}) fixes the values of the difficulties parameters of the items (by default, these values are estimated). +The vector must be a matrix containing as many rows as items, and a column for each threshold parameter (number of answer categories minus 1). +A missing value (.) replaces unexisting difficulty paremeters in the matrix. + +{p 4 8 2}{cmdab:var:iance}({it:#}) fixes the value of the variance of the latent trait (by default, this value is estimated). + +{p 4 8 2}{cmdab:minsize}({it:#}) fixes the minimal value of the groups (30 individuals by default). + +{p 4 8 2}{cmdab:G:raphs} displays the graphs. + +{p 4 8 2}{cmdab:dim:name}({it:string}) defines the name of the analysed dimension (this name appears on the graphs). + +{p 4 8 2}{cmdab:eqset1}({it:varlist}) and {cmdab:eqset2}({it:varlist}) define the items containing in the two sets of items to equate (disjoint or not sets of items) + +{p 4 8 2}{cmdab:eqset1name}({it:string}) and {cmdab:eqset2name}({it:string}) define the names of the two sets of items (set1 and set2 by default). The string cannot contains spaces if the version of Stata is 17 or less. + +{p 4 8 2}{cmdab:EQG:raph} displays graphs + +{p 4 8 2}{cmdab:eqaddset1}({it:#}) and {cmdab:eqaddset2}({it:#}) allows adding a real to the row score to obtain a linear transformed score for each set of items (0 by default) + +{p 4 8 2}{cmdab:eqmultset1}({it:#) and {cmdab:eqmultset2}({it:#}) allows multiplying the row score by a real to obtain a linear transformed score for each set of items (1 by default) + +{p 4 8 2}{cmdab:eqwithci} allows representing the 95% confidence interval of the equated score on the graph + +{p 4 8 2}{cmdab:eqgenscore}({it:string}) create several variables containing the center (_mean_), the minimal (_min_) and the maximal (_max_) values of the 95% confidence interval and a random value (_random_) drawn in this interval + +{p 4 8 2}{cmdab:rep:lace} specifies that the existing files or variables will be replaced. + + +{title:Outputs} + +{p 4 8 2}{cmd:e()}: Output of the gsem procedure + +{p 4 8 2}{cmd:r(ll)}: Marginal Log-likelihood + +{p 4 8 2}{cmd:r(PSI)}: Personal Separation Index + +{p 4 8 2}{cmd:r(difficulties)}: Estimates of the threshold parameters + +{p 4 8 2}{cmd:r(matscorelt)} : estimates of the latent trait associated to each complete item-sum score + +{p 4 8 2}{cmd:r(matgroupscorelt)} : estimates of the latent trait associated to each complete item-sum score and to each group of individuals used for graphical fit tests + +{p 4 8 2}{cmd:r(covariates)} : estimates of the variance of the latent trait and of the parameters associates to covariates + +{p 4 8 2}{cmd:r(bestest)}: estimates of the latent trait obtained for each item by searching the value maximizing the response to each answer category + +{p 4 8 2}{cmd:r(score2_to_1)} : gives the results to equate the raw scores of the set2 to set1 + +{p 4 8 2}{cmd:r(score1_to_2)}: gives the results to equate the raw scores of the set1 to set2 + + + +{title:Examples of Rasch analysis} + +{p 4 8 2}{cmd: . pcm item1-item9} + +{p 4 8 2}{cmd: . pcm item*, graph dirsave(c:\graphs) filesave genlt(lt) docx(report)} + +{p 4 8 2}{cmd: . matrix diff=(-1,-0.8,0.2\-.5,0,0.5\0,1,.\0.2,1,1.2\0.5,.,.)}{p_end} +{p 4 8 2}{cmd: . pcm item1-item5 , diff(diff) cat(sex) cont(age) } + +{title:Example of Rasch equating} + +{p 4 8 2}{cmd: . pcm item1-item9, eqset1(item1-item5) eqset2(item6-item9) eqnameset1(First part) eqnameset2(Second part) eqaddset1(5) eqmultset1(-1) graph} + + +{title:Author} + +{p 4 8 2}Jean-Benoit Hardouin, PhD-HDR, Associate professor - Hospital Practitioner{p_end} +{p 4 8 2}Myriam Blanchin, PhD, Research engineer{p_end} +{p 4 8 2}INSERM UMR 1246-SPHERE "Methods in Patients Centered Outcomes and Health Research"{p_end} +{p 4 8 2}Nantes University - Faculty of Medicine{p_end} +{p 4 8 2}Intitute of Research in Health 2{p_end} +{p 4 8 2}22 boulevard Bénoni-Goullin{p_end} +{p 4 8 2}44200 Nantes - FRANCE{p_end} +{p 4 8 2}Email: +{browse "mailto:jean-benoit.hardouin@univ-nantes.fr":jean-benoit.hardouin@univ-nantes.fr}, {browse "mailto:myriam.blanchin@univ-nantes.fr":myriam.blanchin@univ-nantes.fr}{p_end} + + +{title:Also see} + +{p 4 13 2}Online: help for {help raschtest} and {help gsem} if installed.{p_end} + diff --git a/RProject/pcm.R b/RProject/pcm.R index ca5523d..c30f8eb 100644 --- a/RProject/pcm.R +++ b/RProject/pcm.R @@ -1,6 +1,8 @@ -######################################## -## LIBRARIES -######################################## +############################################################################## +#----------------------------------------------------------------------------# +################################## LIBRARIES ################################# +#----------------------------------------------------------------------------# +############################################################################## library(TAM) library(doMC) @@ -12,15 +14,17 @@ lastChar <- function(str){ substr(str, nchar(str)-2, nchar(str)) } -####################################### -## ANALYSIS FUNCTIONS -####################################### +############################################################################## +#----------------------------------------------------------------------------# +############################# ANALYSIS FUNCTIONS ############################# +#----------------------------------------------------------------------------# +############################################################################## 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) + tam1 <- tam.mml.mfr(resp=resp,Y=df[,treatment],irtmodel = irtmodel,est.variance = T,verbose=F) } if (method=='JML') { tam1 <- tam.jml(resp=resp,group=1+df[,treatment]) @@ -31,9 +35,11 @@ pcm_analysis <- function(df=NULL,treatment='TT',irtmodel='PCM2',method='MML') { return(tam1) } -replicate_pcm_analysis_m4 <- function(df=NULL,treatment='TT',irtmodel='PCM2',method='MML',sequence='replication',truebeta=0,eff.size=0,difsize=NA,nbdif=0) { + +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) @@ -66,7 +72,7 @@ replicate_pcm_analysis_m4 <- function(df=NULL,treatment='TT',irtmodel='PCM2',met returndat2 <- data.frame(J=rep(nbitems,max(df[,sequence])), M=1+max(df$item1), N=nrow(df[df$replication==1,])/2, - eff.size=eff.size, + eff.size=truebeta, dif.size= difsize, nb.dif= nbdif ) @@ -78,7 +84,8 @@ replicate_pcm_analysis_m4 <- function(df=NULL,treatment='TT',irtmodel='PCM2',met -replicate_pcm_analysis_m2 <- function(df=NULL,treatment='TT',irtmodel='PCM2',method='MML',sequence='replication',truebeta=0,eff.size=0,difsize=NA,nbdif=0) { +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') { @@ -110,7 +117,7 @@ replicate_pcm_analysis_m2 <- function(df=NULL,treatment='TT',irtmodel='PCM2',met returndat2 <- data.frame(J=rep(nbitems,max(df[,sequence])), M=1+max(df$item1), N=nrow(df[df$replication==1,])/2, - eff.size=eff.size, + eff.size=truebeta, dif.size= difsize, nb.dif= nbdif ) @@ -118,13 +125,25 @@ replicate_pcm_analysis_m2 <- function(df=NULL,treatment='TT',irtmodel='PCM2',met return(returndat) } -####################################### -## SCENARIO ANALYSIS -####################################### + +replicate_pcm_analysis<- function(df=NULL,treatment='TT',irtmodel='PCM2',method='MML',sequence='replication',truebeta=0,eff.size=0,difsize=NA,nbdif=0) { + j <- max(df$item1) + if(j==1) { + return(replicate_pcm_analysis_m2(df=NULL,treatment='TT',irtmodel='PCM2',method='MML',sequence='replication',truebeta=0,eff.size=0,difsize=NA,nbdif=0)) + } else if (j==3) { + return(replicate_pcm_analysis_m4(df=NULL,treatment='TT',irtmodel='PCM2',method='MML',sequence='replication',truebeta=0,eff.size=0,difsize=NA,nbdif=0)) + } +} + +############################################################################## +#----------------------------------------------------------------------------# +########################## SCENARIO ANALYSIS NO DIF ########################## +#----------------------------------------------------------------------------# +############################################################################## registerDoMC(4) -######### Scenario 1: J=4 / M=2 +###################################### Scenario 1: J=4 / M=2 #### A: H0 TRUE @@ -132,14 +151,69 @@ dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_1A_200.csv') dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_1A_300.csv') -res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis_m2(get(x))) +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') +#### B: H1 TRUE / ES 0.2 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_1B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_1B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_1B_300.csv') + +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') + +#### C: H1 TRUE / ES 0.4 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_1C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_1C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_1C_300.csv') + +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') + +#### D: H1 TRUE / ES -0.2 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_1D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_1D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_1D_300.csv') + +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') -######### Scenario 2: J=4 / M=4 +#### E: H1 TRUE / ES -0.4 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_1E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_1E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_1E_300.csv') + +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') + + + + + + + + + +###################################### Scenario 2: J=4 / M=4 #### A: H0 TRUE @@ -147,14 +221,69 @@ dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_2A_200.csv') dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_2A_300.csv') -res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis_m4(get(x))) +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') +#### B: H1 TRUE / ES 0.2 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_2B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_2B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_2B_300.csv') + +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') + +#### C: H1 TRUE / ES 0.4 -######### Scenario 3: J=7 / M=2 +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_2C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_2C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_2C_300.csv') + +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') + +#### D: H1 TRUE / ES -0.2 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_2D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_2D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_2D_300.csv') + +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') + +#### E: H1 TRUE / ES -0.4 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_2E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_2E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_2E_300.csv') + +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') + + + + + + + + + +###################################### Scenario 3: J=7 / M=2 #### A: H0 TRUE @@ -162,14 +291,69 @@ dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_3A_200.csv') dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_3A_300.csv') -res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis_m2(get(x))) +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') +#### B: H1 TRUE / ES 0.2 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_3B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_3B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_3B_300.csv') + +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') + +#### C: H1 TRUE / ES 0.4 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_3C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_3C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_3C_300.csv') + +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') + +#### D: H1 TRUE / ES -0.2 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_3D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_3D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_3D_300.csv') + +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') + +#### E: H1 TRUE / ES -0.4 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_3E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_3E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_3E_300.csv') -######### Scenario 4: J=7 / M=4 +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') + + + + + + + + + +###################################### Scenario 4: J=7 / M=4 #### A: H0 TRUE @@ -177,9 +361,1706 @@ dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Da dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_4A_200.csv') dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_4A_300.csv') -res <- pbmclapply(c('dat1','dat2','dat3'),function(x) replicate_pcm_analysis_m4(get(x))) +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') +#### B: H1 TRUE / ES 0.2 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_4B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_4B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_4B_300.csv') + +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') + +#### C: H1 TRUE / ES 0.4 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_4C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_4C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_4C_300.csv') + +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') + +#### D: H1 TRUE / ES -0.2 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_4D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_4D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_4D_300.csv') + +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') + +#### E: H1 TRUE / ES -0.4 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100/scenario_4E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N200/scenario_4E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N300/scenario_4E_300.csv') + +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') + + +############################################################################## +#----------------------------------------------------------------------------# +######################### SCENARIO ANALYSIS WITH DIF ######################### +#----------------------------------------------------------------------------# +############################################################################## + +registerDoMC(4) + +###################################### Scenario 5: J=4 / M=2 / NDIF=1 / DIF=0.3 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_5A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_5A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_5A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_5B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_5B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_5B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_5C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_5C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_5C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_5D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_5D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_5D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_5E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_5E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_5E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_5F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_5F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_5F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_5G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_5G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_5G_300.csv') + +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') + + + + + + + + + + +###################################### Scenario 6: J=4 / M=4 / NDIF=1 / DIF=0.3 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_6A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_6A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_6A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_6B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_6B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_6B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_6C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_6C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_6C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_6D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_6D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_6D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_6E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_6E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_6E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_6F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_6F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_6F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_6G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_6G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_6G_300.csv') + +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') + + + + + + + + + + +###################################### Scenario 7: J=4 / M=2 / NDIF=1 / DIF=0.5 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_7A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_7A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_7A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_7B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_7B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_7B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_7C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_7C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_7C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_7D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_7D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_7D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_7E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_7E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_7E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_7F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_7F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_7F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_7G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_7G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_7G_300.csv') + +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') + + + + + + + + + + + +###################################### Scenario 8: J=4 / M=4 / NDIF=1 / DIF=0.5 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_8A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_8A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_8A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_8B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_8B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_8B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_8C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_8C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_8C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_8D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_8D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_8D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_8E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_8E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_8E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_8F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_8F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_8F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_8G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_8G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_8G_300.csv') + +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') + + + + + + + + + + + +###################################### Scenario 9: J=4 / M=2 / NDIF=2 / DIF=0.3 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_9A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_9A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_9A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_9B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_9B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_9B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_9C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_9C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_9C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_9D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_9D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_9D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_9E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_9E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_9E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_9F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_9F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_9F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_9G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_9G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_9G_300.csv') + +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') + + + + + + + + + + +###################################### Scenario 10: J=4 / M=4 / NDIF=2 / DIF=0.3 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_10A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_10A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_10A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_10B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_10B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_10B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_10C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_10C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_10C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_10D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_10D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_10D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_10E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_10E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_10E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_10F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_10F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_10F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_10G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_10G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_10G_300.csv') + +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') + + + + + + + + + + +###################################### Scenario 11: J=4 / M=2 / NDIF=2 / DIF=0.5 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_11A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_11A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_11A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_11B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_11B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_11B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_11C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_11C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_11C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_11D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_11D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_11D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_11E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_11E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_11E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_11F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_11F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_11F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_11G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_11G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_11G_300.csv') + +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') + + + + + + + + + + + +###################################### Scenario 12: J=4 / M=4 / NDIF=2 / DIF=0.5 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_12A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_12A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_12A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_12B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_12B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_12B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_12C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_12C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_12C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_12D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_12D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_12D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_12E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_12E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_12E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_12F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_12F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_12F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_12G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_12G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_12G_300.csv') + +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') + + + + + + + + + + + +###################################### Scenario 13: J=7 / M=2 / NDIF=2 / DIF=0.3 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_13A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_13A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_13A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_13B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_13B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_13B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_13C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_13C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_13C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_13D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_13D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_13D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_13E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_13E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_13E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_13F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_13F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_13F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_13G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_13G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_13G_300.csv') + +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') + + + + + + + + + + +###################################### Scenario 14: J=7 / M=4 / NDIF=2 / DIF=0.3 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_14A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_14A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_14A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_14B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_14B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_14B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_14C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_14C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_14C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_14D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_14D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_14D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_14E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_14E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_14E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_14F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_14F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_14F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_14G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_14G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_14G_300.csv') + +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') + + + + + + + + + + +###################################### Scenario 15: J=7 / M=2 / NDIF=2 / DIF=0.5 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_15A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_15A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_15A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_15B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_15B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_15B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_15C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_15C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_15C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_15D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_15D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_15D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_15E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_15E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_15E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_15F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_15F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_15F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_15G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_15G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_15G_300.csv') + +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') + + + + + + + + + + + +###################################### Scenario 16: J=7 / M=4 / NDIF=2 / DIF=0.5 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_16A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_16A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_16A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_16B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_16B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_16B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_16C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_16C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_16C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_16D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_16D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_16D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_16E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_16E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_16E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_16F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_16F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_16F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_16G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_16G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_16G_300.csv') + +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') + + + + + + + + + + + +###################################### Scenario 17: J=7 / M=2 / NDIF=3 / DIF=0.3 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_17A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_17A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_17A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_17B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_17B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_17B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_17C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_17C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_17C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_17D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_17D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_17D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_17E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_17E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_17E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_17F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_17F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_17F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_17G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_17G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_17G_300.csv') + +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') + + + + + + + + + + +###################################### Scenario 18: J=7 / M=4 / NDIF=3 / DIF=0.3 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_18A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_18A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_18A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_18B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_18B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_18B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_18C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_18C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_18C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_18D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_18D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_18D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_18E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_18E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_18E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_18F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_18F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_18F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_18G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_18G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_18G_300.csv') + +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') + + + + + + + + + + +###################################### Scenario 19: J=7 / M=2 / NDIF=3 / DIF=0.5 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_19A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_19A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_19A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_19B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_19B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_19B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_19C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_19C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_19C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_19D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_19D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_19D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_19E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_19E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_19E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_19F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_19F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_19F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_19G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_19G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_19G_300.csv') + +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') + + + + + + + + + + + +###################################### Scenario 20: J=7 / M=4 / NDIF=3 / DIF=0.5 + +#### A: H0 TRUE + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_20A_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_20A_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_20A_300.csv') + +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') + +#### B: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_20B_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_20B_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_20B_300.csv') + +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') + +#### C: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_20C_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_20C_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_20C_300.csv') + +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') + +#### D: H1 TRUE / ES = 0.4 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_20D_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_20D_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_20D_300.csv') + +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') + +#### E: H1 TRUE / ES = 0.4 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_20E_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_20E_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_20E_300.csv') + +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') + +#### F: H1 TRUE / ES = 0.2 / DS = 0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_20F_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_20F_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_20F_300.csv') + +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') + +#### G: H1 TRUE / ES = 0.2 / DS = -0.3 + +dat1 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100/scenario_20G_100.csv') +dat2 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N200/scenario_20G_200.csv') +dat3 <- read.csv(file = '/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N300/scenario_20G_300.csv') + +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') + + + + + + + + + + + diff --git a/Scripts/Analysis/NoDIF/pcm_nodif_100.do b/Scripts/Analysis/NoDIF/pcm_nodif_100.do index ef822df..42cbd97 100644 --- a/Scripts/Analysis/NoDIF/pcm_nodif_100.do +++ b/Scripts/Analysis/NoDIF/pcm_nodif_100.do @@ -1,49 +1,54 @@ -*================================================================================================================================================= -* Date : 2024-01-23 -* Stata version : Stata 18 SE -* -* This program analyses simulated data without DIF through a partial credit model -* -* ado-files needed : - pcm (version 5.5 October 25, 2023, available on gitea) -* - * outputs : for N=100 -* -* -*================================================================================================================================================ - -* Load pcm.ado -adopath+"/home/corentin/Documents/These/Recherche/Simulations/Modules/" - -* Set output folder path -local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N100" -local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100" -local Nn = 100 - - -*========================== -* Scenarios with : J=4 -*========================== - -** Scenario 1: J = 4 items / M = 2 modalities - -* Scenario 1A : H_0 is TRUE - -clear -import delim "`path_data'/scenario_1A_100.csv", encoding(ISO-8859-2) case(preserve) clear -rename TT tt - - - -keep if replication==1 -di `k' -gsem (1.item1<-THETA@1)/// - (1.item2<-THETA@1)/// - (1.item3<-THETA@1)/// - (1.item4<-THETA@1)/// - (1.item5<-THETA@1)/// - (1.item6<-THETA@1)/// - (1.item7<-THETA@1)/// - (THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent + *================================================================================================================================================= + * Date : 2024-01-23 + * Stata version : Stata 18 SE + * + * This program analyses simulated data without DIF through a partial credit model + * + * ado-files needed : - pcm (version 5.5 October 25, 2023, available on gitea) + * + * outputs : for N=100 + * + * + *================================================================================================================================================ + + * Load pcm.ado + adopath+"/home/corentin/Documents/These/Recherche/Simulations/Modules/" + + * Set output folder path + local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N100" + local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/NoDIF/N100" + local Nn = 100 + + + *========================== + * Scenarios with : J=4 + *========================== + + ** Scenario 1: J = 4 items / M = 2 modalities + + * Scenario 1A : H_0 is TRUE + + clear + import delim "`path_data'/scenario_5A_100.csv", encoding(ISO-8859-2) case(preserve) clear + rename TT tt + + + + keep if replication==1 + di `k' + * log using gsem.txt, text replace + * Créer une matrice 1000xnbitems+1 (pour beta) à l'avance et populer chaque coefficient à la main à chaque itération + * Créer une deuxième matrice et faire de même pour les std error + gsem (1.item1<-THETA@1)/// + (1.item2<-THETA@1 tt)/// + (1.item3<-THETA@1)/// + (1.item4<-THETA@1)/// + (THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent + mat V=r(table) + mat W=V[1..2,1...] + putexcel set "W.xls", sheet("W") replace + putexcel A1=matrix(W) + * log close pcm item1 item2 item3 item4, categorical(tt)