Transférer les fichiers vers 'Scripts/Analysis/DIF'

This commit is contained in:
2024-02-05 09:37:30 +00:00
parent ef1fbfbd4f
commit e8e7f555d6

View File

@ -12,7 +12,7 @@
*================================================================================================================================================
* Load pcm.ado
adopath+"/home/corentin/Documents/These/Recherche/Simulations/Modules/"
adopath+"/home/sphere/Corentin/These/Recherche/Simulations/Modules/"
*==========================
* Scenarios with : J=4
@ -24,8 +24,8 @@
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -83,8 +83,8 @@
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -161,8 +161,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -220,8 +220,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -296,13 +296,15 @@ putexcel A1=matrix(outmat), colnames
****** Scenarios with DIF on 2 items
* Load pcm.ado
adopath+"/home/sphere/Corentin/These/Recherche/Simulations/Modules/"
** Scenario 9: J = 4 items / M = 2 modalities / DIF size 0.3 x2
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -375,8 +377,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -427,7 +429,7 @@ forvalues k=1/1000 {
local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)"
}
}
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)"
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4)"
qui `constrnt'
qui `constrnt2'
qui `constrnt3'
@ -485,8 +487,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -559,8 +561,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -611,7 +613,7 @@ forvalues k=1/1000 {
local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)"
}
}
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)"
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4)"
qui `constrnt'
qui `constrnt2'
qui `constrnt3'
@ -666,19 +668,21 @@ putexcel A1=matrix(outmat), colnames
*==========================
* Scenarios with : J=4
* Scenarios with : J=7
*==========================
****** Scenarios with DIF on 2 items
* Load pcm.ado
adopath+"/home/sphere/Corentin/These/Recherche/Simulations/Modules/"
** Scenario 13: J = 7 items / M = 2 modalities / DIF size 0.3 x2
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -751,8 +755,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -803,7 +807,7 @@ forvalues k=1/1000 {
local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)"
}
}
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)"
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4)"
qui `constrnt'
qui `constrnt2'
qui `constrnt3'
@ -861,8 +865,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -935,8 +939,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -987,7 +991,7 @@ forvalues k=1/1000 {
local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)"
}
}
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)"
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4)"
qui `constrnt'
qui `constrnt2'
qui `constrnt3'
@ -1041,13 +1045,15 @@ putexcel A1=matrix(outmat), colnames
***** Scenarios with DIF on 3 items
* Load pcm.ado
adopath+"/home/sphere/Corentin/These/Recherche/Simulations/Modules/"
** Scenario 17: J = 7 items / M = 2 modalities / DIF size 0.3 x3
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -1137,8 +1143,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -1207,7 +1213,7 @@ forvalues k=1/1000 {
local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)"
}
}
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)"
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4 5 6)"
qui `constrnt'
qui `constrnt2'
qui `constrnt3'
@ -1279,8 +1285,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -1370,8 +1376,8 @@ putexcel A1=matrix(outmat), colnames
local N = "100 200 300"
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local path_data = "/home/sphere/Corentin/These/Recherche/Simulations/Data/DIF/N`Nn'"
local path_res = "/home/sphere/Corentin/These/Recherche/Simulations/Analysis/DIF/N`Nn'"
local scenarios = "A B C D E F G"
foreach scen in `scenarios' {
clear
@ -1440,7 +1446,7 @@ forvalues k=1/1000 {
local mod = "`mod'"+"(1.item`i'<-THETA@1)(2.item`i'<-THETA@2)(3.item`i'<-THETA@3)"
}
}
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2)"
local mod = "`mod'" + "(THETA<-tt), mlogit tol(0.01) iterate(500) latent(THETA) nocapslatent constraint(1 2 3 4 5 6)"
qui `constrnt'
qui `constrnt2'
qui `constrnt3'