|
|
@ -53,7 +53,7 @@ adopath+"/home/corentin/Documents/These/Recherche/ROSALI-SIM/Modules/rosali_cust
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
local nbdif=3
|
|
|
|
local nbdif=3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
local taillemat=`nbitems'+3+`nbdif'
|
|
|
|
local taillemat=2*`nbitems'+3+`nbdif'
|
|
|
|
|
|
|
|
|
|
|
|
mat outmat = J(1000,`taillemat',.)
|
|
|
|
mat outmat = J(1000,`taillemat',.)
|
|
|
|
di "Scenario `s'`scen' / N=`Nnn'"
|
|
|
|
di "Scenario `s'`scen' / N=`Nnn'"
|
|
|
@ -65,27 +65,28 @@ adopath+"/home/corentin/Documents/These/Recherche/ROSALI-SIM/Modules/rosali_cust
|
|
|
|
qui keep if replication==`k'
|
|
|
|
qui keep if replication==`k'
|
|
|
|
qui rosali_original item1-item`nbitems' item1-item`nbitems', group(TT)
|
|
|
|
qui rosali_original item1-item`nbitems' item1-item`nbitems', group(TT)
|
|
|
|
qui mat resmat=r(difitems)
|
|
|
|
qui mat resmat=r(difitems)
|
|
|
|
forvalues jj=1/`nbitems' {
|
|
|
|
local nbitems2 = 2*`nbitems'
|
|
|
|
|
|
|
|
forvalues jj=1/`nbitems2' {
|
|
|
|
qui mat outmat[`k',`jj']=resmat[1,`jj']
|
|
|
|
qui mat outmat[`k',`jj']=resmat[1,`jj']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qui mat outmat[`k',`nbitems'+1]=`Nn'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+1]=`Nn'
|
|
|
|
qui mat outmat[`k',`nbitems'+2]=`nbitems'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+2]=`nbitems'
|
|
|
|
qui mat outmat[`k',`nbitems'+3]=`nbdif'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+3]=`nbdif'
|
|
|
|
if (`nbdif' > 0) {
|
|
|
|
if (`nbdif' > 0) {
|
|
|
|
qui levelsof dif1
|
|
|
|
qui levelsof dif1
|
|
|
|
local ldif1 = r(levels)
|
|
|
|
local ldif1 = r(levels)
|
|
|
|
local diff1: word 1 of `ldif1'
|
|
|
|
local diff1: word 1 of `ldif1'
|
|
|
|
qui mat outmat[`k',`nbitems'+4]=`diff1'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+4]=`diff1'
|
|
|
|
if (`nbdif' > 1) {
|
|
|
|
if (`nbdif' > 1) {
|
|
|
|
qui levelsof dif2
|
|
|
|
qui levelsof dif2
|
|
|
|
local ldif2 = r(levels)
|
|
|
|
local ldif2 = r(levels)
|
|
|
|
local diff2: word 1 of `ldif2'
|
|
|
|
local diff2: word 1 of `ldif2'
|
|
|
|
qui mat outmat[`k',`nbitems'+5]=`diff2'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+5]=`diff2'
|
|
|
|
if (`nbdif' > 2) {
|
|
|
|
if (`nbdif' > 2) {
|
|
|
|
qui levelsof dif3
|
|
|
|
qui levelsof dif3
|
|
|
|
local ldif3 = r(levels)
|
|
|
|
local ldif3 = r(levels)
|
|
|
|
local diff3: word 1 of `ldif3'
|
|
|
|
local diff3: word 1 of `ldif3'
|
|
|
|
qui mat outmat[`k',`nbitems'+6]=`diff3'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+6]=`diff3'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -137,7 +138,7 @@ adopath+"/home/corentin/Documents/These/Recherche/ROSALI-SIM/Modules/rosali_cust
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
local nbdif=3
|
|
|
|
local nbdif=3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
local taillemat=`nbitems'+3+`nbdif'
|
|
|
|
local taillemat=2*`nbitems'+3+`nbdif'
|
|
|
|
|
|
|
|
|
|
|
|
mat outmat = J(1000,`taillemat',.)
|
|
|
|
mat outmat = J(1000,`taillemat',.)
|
|
|
|
di "Scenario `s'`scen' / N=`Nnn'"
|
|
|
|
di "Scenario `s'`scen' / N=`Nnn'"
|
|
|
@ -149,27 +150,28 @@ adopath+"/home/corentin/Documents/These/Recherche/ROSALI-SIM/Modules/rosali_cust
|
|
|
|
qui keep if replication==`k'
|
|
|
|
qui keep if replication==`k'
|
|
|
|
qui rosali_nobf item1-item`nbitems' item1-item`nbitems', group(TT)
|
|
|
|
qui rosali_nobf item1-item`nbitems' item1-item`nbitems', group(TT)
|
|
|
|
qui mat resmat=r(difitems)
|
|
|
|
qui mat resmat=r(difitems)
|
|
|
|
forvalues jj=1/`nbitems' {
|
|
|
|
local nbitems2 = 2*`nbitems'
|
|
|
|
|
|
|
|
forvalues jj=1/`nbitems2' {
|
|
|
|
qui mat outmat[`k',`jj']=resmat[1,`jj']
|
|
|
|
qui mat outmat[`k',`jj']=resmat[1,`jj']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qui mat outmat[`k',`nbitems'+1]=`Nn'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+1]=`Nn'
|
|
|
|
qui mat outmat[`k',`nbitems'+2]=`nbitems'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+2]=`nbitems'
|
|
|
|
qui mat outmat[`k',`nbitems'+3]=`nbdif'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+3]=`nbdif'
|
|
|
|
if (`nbdif' > 0) {
|
|
|
|
if (`nbdif' > 0) {
|
|
|
|
qui levelsof dif1
|
|
|
|
qui levelsof dif1
|
|
|
|
local ldif1 = r(levels)
|
|
|
|
local ldif1 = r(levels)
|
|
|
|
local diff1: word 1 of `ldif1'
|
|
|
|
local diff1: word 1 of `ldif1'
|
|
|
|
qui mat outmat[`k',`nbitems'+4]=`diff1'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+4]=`diff1'
|
|
|
|
if (`nbdif' > 1) {
|
|
|
|
if (`nbdif' > 1) {
|
|
|
|
qui levelsof dif2
|
|
|
|
qui levelsof dif2
|
|
|
|
local ldif2 = r(levels)
|
|
|
|
local ldif2 = r(levels)
|
|
|
|
local diff2: word 1 of `ldif2'
|
|
|
|
local diff2: word 1 of `ldif2'
|
|
|
|
qui mat outmat[`k',`nbitems'+5]=`diff2'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+5]=`diff2'
|
|
|
|
if (`nbdif' > 2) {
|
|
|
|
if (`nbdif' > 2) {
|
|
|
|
qui levelsof dif3
|
|
|
|
qui levelsof dif3
|
|
|
|
local ldif3 = r(levels)
|
|
|
|
local ldif3 = r(levels)
|
|
|
|
local diff3: word 1 of `ldif3'
|
|
|
|
local diff3: word 1 of `ldif3'
|
|
|
|
qui mat outmat[`k',`nbitems'+6]=`diff3'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+6]=`diff3'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -221,7 +223,7 @@ adopath+"/home/corentin/Documents/These/Recherche/ROSALI-SIM/Modules/rosali_cust
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
local nbdif=3
|
|
|
|
local nbdif=3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
local taillemat=`nbitems'+3+`nbdif'
|
|
|
|
local taillemat=2*`nbitems'+3+`nbdif'
|
|
|
|
|
|
|
|
|
|
|
|
mat outmat = J(1000,`taillemat',.)
|
|
|
|
mat outmat = J(1000,`taillemat',.)
|
|
|
|
di "Scenario `s'`scen' / N=`Nnn'"
|
|
|
|
di "Scenario `s'`scen' / N=`Nnn'"
|
|
|
@ -233,27 +235,28 @@ adopath+"/home/corentin/Documents/These/Recherche/ROSALI-SIM/Modules/rosali_cust
|
|
|
|
qui keep if replication==`k'
|
|
|
|
qui keep if replication==`k'
|
|
|
|
qui rosali_nolrt item1-item`nbitems' item1-item`nbitems', group(TT)
|
|
|
|
qui rosali_nolrt item1-item`nbitems' item1-item`nbitems', group(TT)
|
|
|
|
qui mat resmat=r(difitems)
|
|
|
|
qui mat resmat=r(difitems)
|
|
|
|
forvalues jj=1/`nbitems' {
|
|
|
|
local nbitems2 = 2*`nbitems'
|
|
|
|
|
|
|
|
forvalues jj=1/`nbitems2' {
|
|
|
|
qui mat outmat[`k',`jj']=resmat[1,`jj']
|
|
|
|
qui mat outmat[`k',`jj']=resmat[1,`jj']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qui mat outmat[`k',`nbitems'+1]=`Nn'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+1]=`Nn'
|
|
|
|
qui mat outmat[`k',`nbitems'+2]=`nbitems'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+2]=`nbitems'
|
|
|
|
qui mat outmat[`k',`nbitems'+3]=`nbdif'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+3]=`nbdif'
|
|
|
|
if (`nbdif' > 0) {
|
|
|
|
if (`nbdif' > 0) {
|
|
|
|
qui levelsof dif1
|
|
|
|
qui levelsof dif1
|
|
|
|
local ldif1 = r(levels)
|
|
|
|
local ldif1 = r(levels)
|
|
|
|
local diff1: word 1 of `ldif1'
|
|
|
|
local diff1: word 1 of `ldif1'
|
|
|
|
qui mat outmat[`k',`nbitems'+4]=`diff1'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+4]=`diff1'
|
|
|
|
if (`nbdif' > 1) {
|
|
|
|
if (`nbdif' > 1) {
|
|
|
|
qui levelsof dif2
|
|
|
|
qui levelsof dif2
|
|
|
|
local ldif2 = r(levels)
|
|
|
|
local ldif2 = r(levels)
|
|
|
|
local diff2: word 1 of `ldif2'
|
|
|
|
local diff2: word 1 of `ldif2'
|
|
|
|
qui mat outmat[`k',`nbitems'+5]=`diff2'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+5]=`diff2'
|
|
|
|
if (`nbdif' > 2) {
|
|
|
|
if (`nbdif' > 2) {
|
|
|
|
qui levelsof dif3
|
|
|
|
qui levelsof dif3
|
|
|
|
local ldif3 = r(levels)
|
|
|
|
local ldif3 = r(levels)
|
|
|
|
local diff3: word 1 of `ldif3'
|
|
|
|
local diff3: word 1 of `ldif3'
|
|
|
|
qui mat outmat[`k',`nbitems'+6]=`diff3'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+6]=`diff3'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -304,7 +307,7 @@ adopath+"/home/corentin/Documents/These/Recherche/ROSALI-SIM/Modules/rosali_cust
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
local nbdif=3
|
|
|
|
local nbdif=3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
local taillemat=`nbitems'+3+`nbdif'
|
|
|
|
local taillemat=2*`nbitems'+3+`nbdif'
|
|
|
|
|
|
|
|
|
|
|
|
mat outmat = J(1000,`taillemat',.)
|
|
|
|
mat outmat = J(1000,`taillemat',.)
|
|
|
|
di "Scenario `s'`scen' / N=`Nnn'"
|
|
|
|
di "Scenario `s'`scen' / N=`Nnn'"
|
|
|
@ -316,27 +319,28 @@ adopath+"/home/corentin/Documents/These/Recherche/ROSALI-SIM/Modules/rosali_cust
|
|
|
|
qui keep if replication==`k'
|
|
|
|
qui keep if replication==`k'
|
|
|
|
qui rosali_nolrt_nobf item1-item`nbitems' item1-item`nbitems', group(TT)
|
|
|
|
qui rosali_nolrt_nobf item1-item`nbitems' item1-item`nbitems', group(TT)
|
|
|
|
qui mat resmat=r(difitems)
|
|
|
|
qui mat resmat=r(difitems)
|
|
|
|
forvalues jj=1/`nbitems' {
|
|
|
|
local nbitems2 = 2*`nbitems'
|
|
|
|
|
|
|
|
forvalues jj=1/`nbitems2' {
|
|
|
|
qui mat outmat[`k',`jj']=resmat[1,`jj']
|
|
|
|
qui mat outmat[`k',`jj']=resmat[1,`jj']
|
|
|
|
}
|
|
|
|
}
|
|
|
|
qui mat outmat[`k',`nbitems'+1]=`Nn'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+1]=`Nn'
|
|
|
|
qui mat outmat[`k',`nbitems'+2]=`nbitems'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+2]=`nbitems'
|
|
|
|
qui mat outmat[`k',`nbitems'+3]=`nbdif'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+3]=`nbdif'
|
|
|
|
if (`nbdif' > 0) {
|
|
|
|
if (`nbdif' > 0) {
|
|
|
|
qui levelsof dif1
|
|
|
|
qui levelsof dif1
|
|
|
|
local ldif1 = r(levels)
|
|
|
|
local ldif1 = r(levels)
|
|
|
|
local diff1: word 1 of `ldif1'
|
|
|
|
local diff1: word 1 of `ldif1'
|
|
|
|
qui mat outmat[`k',`nbitems'+4]=`diff1'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+4]=`diff1'
|
|
|
|
if (`nbdif' > 1) {
|
|
|
|
if (`nbdif' > 1) {
|
|
|
|
qui levelsof dif2
|
|
|
|
qui levelsof dif2
|
|
|
|
local ldif2 = r(levels)
|
|
|
|
local ldif2 = r(levels)
|
|
|
|
local diff2: word 1 of `ldif2'
|
|
|
|
local diff2: word 1 of `ldif2'
|
|
|
|
qui mat outmat[`k',`nbitems'+5]=`diff2'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+5]=`diff2'
|
|
|
|
if (`nbdif' > 2) {
|
|
|
|
if (`nbdif' > 2) {
|
|
|
|
qui levelsof dif3
|
|
|
|
qui levelsof dif3
|
|
|
|
local ldif3 = r(levels)
|
|
|
|
local ldif3 = r(levels)
|
|
|
|
local diff3: word 1 of `ldif3'
|
|
|
|
local diff3: word 1 of `ldif3'
|
|
|
|
qui mat outmat[`k',`nbitems'+6]=`diff3'
|
|
|
|
qui mat outmat[`k',2*`nbitems'+6]=`diff3'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|