Updated and created residuals analysis .do file

main
Corentin Choisy 8 months ago
parent af45e435f9
commit 5cb862072c

@ -16,12 +16,12 @@ local N = "50 100 200 300"
foreach s in `ss' {
foreach Nnn in `N' {
local Nn = `Nnn'
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/DIF/N`Nn'"
if (`s'<=4) {
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Data/NoDIF/N`Nn'"
}
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/ROSALI-DIF/N`Nn'"
local path_data = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/RESALI/Detection_data"
local path_res = "/home/corentin/Documents/These/Recherche/Simulations/Analysis/RESALI/Results/N`Nn'"
local scenarios = "A B C D E F G"
if (`s' <= 4) {
local scenarios = "A B C D E"
}
foreach scen in `scenarios' {
clear
import delim "`path_data'/scenario_`s'`scen'_`Nn'.csv", encoding(ISO-8859-2) case(preserve) clear
@ -40,12 +40,12 @@ local N = "50 100 200 300"
local nbitems=7
}
if (mod(`s',2)==0) {
if (mod(`s',2)==0) {
local nbmoda=3
}
else {
}
else {
local nbmoda=1
}
}
if (`s'<=4) {
local nbdif=0
@ -75,7 +75,7 @@ else {
forvalues i=1/`nbdif' {
local colna = "`colna'"+"real_dif_`i' "
}
local colna = "`colna'" + "beta " + "se_beta"
local colna = "`colna'" + "beta " + "se_beta"
mat outmat = J(1000,`taillemat',.)
@ -359,6 +359,6 @@ local colna = "`colna'" + "beta " + "se_beta"
}
putexcel set "`path_res'/`s'`scen'_`Nn'_original.xls", sheet("outmat") replace
putexcel A1=matrix(outmat), colnames
}
}
}
}
}
}

@ -40,12 +40,12 @@ local N = "50 100 200 300"
local nbitems=7
}
if (mod(`s',2)==0) {
if (mod(`s',2)==0) {
local nbmoda=3
}
else {
}
else {
local nbmoda=1
}
}
if (`s'<=4) {
local nbdif=0
@ -75,7 +75,7 @@ else {
forvalues i=1/`nbdif' {
local colna = "`colna'"+"real_dif_`i' "
}
local colna = "`colna'" + "beta " + "se_beta"
local colna = "`colna'" + "beta " + "se_beta"
mat outmat = J(1000,`taillemat',.)
@ -359,6 +359,6 @@ local colna = "`colna'" + "beta " + "se_beta"
}
putexcel set "`path_res'/`s'`scen'_`Nn'_original.xls", sheet("outmat") replace
putexcel A1=matrix(outmat), colnames
}
}
}
}
}
}

Loading…
Cancel
Save