|
|
@ -145,6 +145,84 @@ forvalues replication = 1/1000 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export delimited using "`path'/scenario_1C_100.csv", replace
|
|
|
|
export delimited using "`path'/scenario_1C_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Scenario 1D : H_0 is FALSE / Effect size = -0.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
di "SCENARIO 1D - N=100"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
forvalues replication = 1/1000 {
|
|
|
|
|
|
|
|
if mod(`replication',10)==0 {
|
|
|
|
|
|
|
|
di "replication = `replication'"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mat D= (-0.84 \ -0.25 \ 0.25 \ 0.84)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(0) cov(1) dim(4) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 0
|
|
|
|
|
|
|
|
tempfile grp0
|
|
|
|
|
|
|
|
qui save `grp0',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mat D= (-0.84 \ -0.25 \ 0.25 \ 0.84)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(-0.2) cov(1) dim(4) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 1
|
|
|
|
|
|
|
|
tempfile grp1
|
|
|
|
|
|
|
|
qui save `grp1',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
|
|
|
|
use `grp0'
|
|
|
|
|
|
|
|
qui append using `grp1'
|
|
|
|
|
|
|
|
drop id
|
|
|
|
|
|
|
|
qui gen id = _n
|
|
|
|
|
|
|
|
order(id)
|
|
|
|
|
|
|
|
qui gen replication = `replication'
|
|
|
|
|
|
|
|
if `replication'==1{
|
|
|
|
|
|
|
|
tempfile data
|
|
|
|
|
|
|
|
qui save `data'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
qui append using `data'
|
|
|
|
|
|
|
|
qui save `data',replace
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export delimited using "`path'/scenario_1D_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Scenario 1E : H_0 is FALSE / Effect size = -0.4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
di "SCENARIO 1E - N=100"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
forvalues replication = 1/1000 {
|
|
|
|
|
|
|
|
if mod(`replication',10)==0 {
|
|
|
|
|
|
|
|
di "replication = `replication'"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mat D= (-0.84 \ -0.25 \ 0.25 \ 0.84)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(0) cov(1) dim(4) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 0
|
|
|
|
|
|
|
|
tempfile grp0
|
|
|
|
|
|
|
|
qui save `grp0',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mat D= (-0.84 \ -0.25 \ 0.25 \ 0.84)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(-0.4) cov(1) dim(4) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 1
|
|
|
|
|
|
|
|
tempfile grp1
|
|
|
|
|
|
|
|
qui save `grp1',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
|
|
|
|
use `grp0'
|
|
|
|
|
|
|
|
qui append using `grp1'
|
|
|
|
|
|
|
|
drop id
|
|
|
|
|
|
|
|
qui gen id = _n
|
|
|
|
|
|
|
|
order(id)
|
|
|
|
|
|
|
|
qui gen replication = `replication'
|
|
|
|
|
|
|
|
if `replication'==1{
|
|
|
|
|
|
|
|
tempfile data
|
|
|
|
|
|
|
|
qui save `data'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
qui append using `data'
|
|
|
|
|
|
|
|
qui save `data',replace
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export delimited using "`path'/scenario_1E_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**------------------------------------------------------------------------------------**
|
|
|
|
**------------------------------------------------------------------------------------**
|
|
|
|
|
|
|
|
|
|
|
@ -264,6 +342,88 @@ forvalues replication = 1/1000 {
|
|
|
|
export delimited using "`path'/scenario_2C_100.csv", replace
|
|
|
|
export delimited using "`path'/scenario_2C_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Scenario 2D : H_0 is FALSE / Effect size = -0.2
|
|
|
|
|
|
|
|
di "SCENARIO 2D - N=100"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
forvalues replication = 1/1000 {
|
|
|
|
|
|
|
|
if mod(`replication',10)==0 {
|
|
|
|
|
|
|
|
di "replication = `replication'"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mat D= (-1.84,-0.84,0.16 \ -1.25,-0.25,0.75 \ -0.75,0.25,1.25 \ 0.16,0.84,1.84)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(0) cov(1) dim(4) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 0
|
|
|
|
|
|
|
|
tempfile grp0
|
|
|
|
|
|
|
|
qui save `grp0',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mat D= (-1.84,-0.84,0.16 \ -1.25,-0.25,0.75 \ -0.75,0.25,1.25 \ 0.16,0.84,1.84)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(-0.2) cov(1) dim(4) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 1
|
|
|
|
|
|
|
|
tempfile grp1
|
|
|
|
|
|
|
|
qui save `grp1',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
|
|
|
|
use `grp0'
|
|
|
|
|
|
|
|
qui append using `grp1'
|
|
|
|
|
|
|
|
drop id
|
|
|
|
|
|
|
|
qui gen id = _n
|
|
|
|
|
|
|
|
order(id)
|
|
|
|
|
|
|
|
qui gen replication = `replication'
|
|
|
|
|
|
|
|
if `replication'==1{
|
|
|
|
|
|
|
|
tempfile data
|
|
|
|
|
|
|
|
qui save `data'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
qui append using `data'
|
|
|
|
|
|
|
|
qui save `data',replace
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export delimited using "`path'/scenario_2D_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Scenario 2E : H_0 is FALSE / Effect size = -0.4
|
|
|
|
|
|
|
|
di "SCENARIO 2E - N=100"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
forvalues replication = 1/1000 {
|
|
|
|
|
|
|
|
if mod(`replication',10)==0 {
|
|
|
|
|
|
|
|
di "replication = `replication'"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mat D= (-1.84,-0.84,0.16 \ -1.25,-0.25,0.75 \ -0.75,0.25,1.25 \ 0.16,0.84,1.84)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(0) cov(1) dim(4) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 0
|
|
|
|
|
|
|
|
tempfile grp0
|
|
|
|
|
|
|
|
qui save `grp0',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mat D= (-1.84,-0.84,0.16 \ -1.25,-0.25,0.75 \ -0.75,0.25,1.25 \ 0.16,0.84,1.84)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(-0.4) cov(1) dim(4) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 1
|
|
|
|
|
|
|
|
tempfile grp1
|
|
|
|
|
|
|
|
qui save `grp1',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
|
|
|
|
use `grp0'
|
|
|
|
|
|
|
|
qui append using `grp1'
|
|
|
|
|
|
|
|
drop id
|
|
|
|
|
|
|
|
qui gen id = _n
|
|
|
|
|
|
|
|
order(id)
|
|
|
|
|
|
|
|
qui gen replication = `replication'
|
|
|
|
|
|
|
|
if `replication'==1{
|
|
|
|
|
|
|
|
tempfile data
|
|
|
|
|
|
|
|
qui save `data'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
qui append using `data'
|
|
|
|
|
|
|
|
qui save `data',replace
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export delimited using "`path'/scenario_2E_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**------------------------------------------------------------------------------------**
|
|
|
|
**------------------------------------------------------------------------------------**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -382,6 +542,84 @@ forvalues replication = 1/1000 {
|
|
|
|
export delimited using "`path'/scenario_3C_100.csv", replace
|
|
|
|
export delimited using "`path'/scenario_3C_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Scenario 3D : H_0 is FALSE / Effect size = -0.2
|
|
|
|
|
|
|
|
di "SCENARIO 3D - N=100"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
forvalues replication = 1/1000 {
|
|
|
|
|
|
|
|
if mod(`replication',10)==0 {
|
|
|
|
|
|
|
|
di "replication = `replication'"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mat D= (-1.15 \ -0.67 \ -0.32 \ 0 \ 0.32 \ 0.67 \ 1.15)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(0) cov(1) dim(7) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 0
|
|
|
|
|
|
|
|
tempfile grp0
|
|
|
|
|
|
|
|
qui save `grp0',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mat D= (-1.15 \ -0.67 \ -0.32 \ 0 \ 0.32 \ 0.67 \ 1.15)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(-0.2) cov(1) dim(7) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 1
|
|
|
|
|
|
|
|
tempfile grp1
|
|
|
|
|
|
|
|
qui save `grp1',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
|
|
|
|
use `grp0'
|
|
|
|
|
|
|
|
qui append using `grp1'
|
|
|
|
|
|
|
|
drop id
|
|
|
|
|
|
|
|
qui gen id = _n
|
|
|
|
|
|
|
|
order(id)
|
|
|
|
|
|
|
|
qui gen replication = `replication'
|
|
|
|
|
|
|
|
if `replication'==1{
|
|
|
|
|
|
|
|
tempfile data
|
|
|
|
|
|
|
|
qui save `data'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
qui append using `data'
|
|
|
|
|
|
|
|
qui save `data',replace
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export delimited using "`path'/scenario_3D_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Scenario 3E : H_0 is FALSE / Effect size = -0.4
|
|
|
|
|
|
|
|
di "SCENARIO 3E - N=100"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
forvalues replication = 1/1000 {
|
|
|
|
|
|
|
|
if mod(`replication',10)==0 {
|
|
|
|
|
|
|
|
di "replication = `replication'"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mat D= (-1.15 \ -0.67 \ -0.32 \ 0 \ 0.32 \ 0.67 \ 1.15)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(0) cov(1) dim(7) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 0
|
|
|
|
|
|
|
|
tempfile grp0
|
|
|
|
|
|
|
|
qui save `grp0',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mat D= (-1.15 \ -0.67 \ -0.32 \ 0 \ 0.32 \ 0.67 \ 1.15)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(-0.4) cov(1) dim(7) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 1
|
|
|
|
|
|
|
|
tempfile grp1
|
|
|
|
|
|
|
|
qui save `grp1',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
|
|
|
|
use `grp0'
|
|
|
|
|
|
|
|
qui append using `grp1'
|
|
|
|
|
|
|
|
drop id
|
|
|
|
|
|
|
|
qui gen id = _n
|
|
|
|
|
|
|
|
order(id)
|
|
|
|
|
|
|
|
qui gen replication = `replication'
|
|
|
|
|
|
|
|
if `replication'==1{
|
|
|
|
|
|
|
|
tempfile data
|
|
|
|
|
|
|
|
qui save `data'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
qui append using `data'
|
|
|
|
|
|
|
|
qui save `data',replace
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export delimited using "`path'/scenario_3E_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**------------------------------------------------------------------------------------**
|
|
|
|
**------------------------------------------------------------------------------------**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -498,3 +736,78 @@ forvalues replication = 1/1000 {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export delimited using "`path'/scenario_4C_100.csv", replace
|
|
|
|
export delimited using "`path'/scenario_4C_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Scenario 4D : H_0 is FALSE / Effect size = -0.2
|
|
|
|
|
|
|
|
di "SCENARIO 4D - N=100"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
forvalues replication = 1/1000 {
|
|
|
|
|
|
|
|
if mod(`replication',10)==0 {
|
|
|
|
|
|
|
|
di "replication = `replication'"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mat D= (-2.15,-1.15,-0.15 \ -1.67,-0.67,0.33 \ -1.32,-0.32,0.68 \ -1,0,1 \ -0.68,0.32,1.32 \ -0.33,0.67,1.67 \ 0.15,1.15,2.15)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(0) cov(1) dim(7) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 0
|
|
|
|
|
|
|
|
tempfile grp0
|
|
|
|
|
|
|
|
qui save `grp0',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mat D= (-2.15,-1.15,-0.15 \ -1.67,-0.67,0.33 \ -1.32,-0.32,0.68 \ -1,0,1 \ -0.68,0.32,1.32 \ -0.33,0.67,1.67 \ 0.15,1.15,2.15)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(-0.2) cov(1) dim(7) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 1
|
|
|
|
|
|
|
|
tempfile grp1
|
|
|
|
|
|
|
|
qui save `grp1',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
|
|
|
|
use `grp0'
|
|
|
|
|
|
|
|
qui append using `grp1'
|
|
|
|
|
|
|
|
drop id
|
|
|
|
|
|
|
|
qui gen id = _n
|
|
|
|
|
|
|
|
order(id)
|
|
|
|
|
|
|
|
qui gen replication = `replication'
|
|
|
|
|
|
|
|
if `replication'==1{
|
|
|
|
|
|
|
|
tempfile data
|
|
|
|
|
|
|
|
qui save `data'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
qui append using `data'
|
|
|
|
|
|
|
|
qui save `data',replace
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export delimited using "`path'/scenario_4D_100.csv", replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Scenario 4E : H_0 is FALSE / Effect size = -0.4
|
|
|
|
|
|
|
|
di "SCENARIO 4E - N=100"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
forvalues replication = 1/1000 {
|
|
|
|
|
|
|
|
if mod(`replication',10)==0 {
|
|
|
|
|
|
|
|
di "replication = `replication'"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
mat D= (-2.15,-1.15,-0.15 \ -1.67,-0.67,0.33 \ -1.32,-0.32,0.68 \ -1,0,1 \ -0.68,0.32,1.32 \ -0.33,0.67,1.67 \ 0.15,1.15,2.15)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(0) cov(1) dim(7) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 0
|
|
|
|
|
|
|
|
tempfile grp0
|
|
|
|
|
|
|
|
qui save `grp0',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mat D= (-2.15,-1.15,-0.15 \ -1.67,-0.67,0.33 \ -1.32,-0.32,0.68 \ -1,0,1 \ -0.68,0.32,1.32 \ -0.33,0.67,1.67 \ 0.15,1.15,2.15)
|
|
|
|
|
|
|
|
qui simirt, nbobs(`Nn') mu(-0.4) cov(1) dim(7) pcm(D) clear
|
|
|
|
|
|
|
|
qui gen TT = 1
|
|
|
|
|
|
|
|
tempfile grp1
|
|
|
|
|
|
|
|
qui save `grp1',replace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clear
|
|
|
|
|
|
|
|
use `grp0'
|
|
|
|
|
|
|
|
qui append using `grp1'
|
|
|
|
|
|
|
|
drop id
|
|
|
|
|
|
|
|
qui gen id = _n
|
|
|
|
|
|
|
|
order(id)
|
|
|
|
|
|
|
|
qui gen replication = `replication'
|
|
|
|
|
|
|
|
if `replication'==1{
|
|
|
|
|
|
|
|
tempfile data
|
|
|
|
|
|
|
|
qui save `data'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
|
|
|
|
qui append using `data'
|
|
|
|
|
|
|
|
qui save `data',replace
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
export delimited using "`path'/scenario_4E_100.csv", replace
|
|
|
|