diff --git a/.gitignore b/.gitignore index 5e0bcd7a..85f00d26 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ !.gitattributes #.io page _config.yml +!reproot.yaml # Keep markdown files used for documentation on GitHub !README.md @@ -74,3 +75,5 @@ test/ * Ignore the local dev env set up by repado run/dev-env/ + +run/ieboilstart/ado-test/ diff --git a/ietoolkit.stpr b/ietoolkit.stpr deleted file mode 100644 index ed5d1aa1..00000000 Binary files a/ietoolkit.stpr and /dev/null differ diff --git a/reproot.yaml b/reproot.yaml new file mode 100644 index 00000000..e8d10769 --- /dev/null +++ b/reproot.yaml @@ -0,0 +1,2 @@ +project_name : ietoolkit +root_name : clone diff --git a/run/iebaltab/iebaltab1.do b/run/iebaltab/iebaltab1.do index 69ed5868..dfb2a3ff 100644 --- a/run/iebaltab/iebaltab1.do +++ b/run/iebaltab/iebaltab1.do @@ -1,15 +1,29 @@ - * Set versson and seed - ieboilstart , version(13.1) - `r(version)' + ************************ + * Set up root paths if not already set, and set up dev environment + + reproot, project("ietoolkit") roots("clone") prefix("ietk_") + global runfldr "${ietk_clone}/run" + global srcfldr "${ietk_clone}/src" + + * Install the version of this package in + * the plus-ado folder in the test folder + cap mkdir "${runfldr}/dev-env" + repado using "${runfldr}/dev-env" + + cap net uninstall ietoolkit + net install ietoolkit, from("${ietk_clone}/src") replace + + * Set version to target version of ietoolkit + ieboilstart , version(13.1) + `r(version)' * Load the command from file and utils - qui do "src/ado_files/iebaltab.ado" - qui do "run/iebaltab/iebaltab_run_utils.do" - qui do "run/run_utils.do" + qui do "${runfldr}/iebaltab/iebaltab_run_utils.do" + qui do "${runfldr}/run_utils.do" * Folder local and make sure it is created - local out "run/iebaltab/outputs/iebaltab1" + local out "${runfldr}/iebaltab/outputs/iebaltab1" ie_recurse_mkdir, folder("`out'") ************* Regular diff --git a/run/iebaltab/iebaltab2.do b/run/iebaltab/iebaltab2.do index 7666d277..0adaea3d 100644 --- a/run/iebaltab/iebaltab2.do +++ b/run/iebaltab/iebaltab2.do @@ -1,154 +1,173 @@ -ieboilstart , version(13.1) -`r(version)' + ************************ + * Set up root paths if not already set, and set up dev environment -sysuse auto, clear + reproot, project("ietoolkit") roots("clone") prefix("ietk_") + global runfldr "${ietk_clone}/run" + global srcfldr "${ietk_clone}/src" -set seed 232197 // obtained from bit.ly/stata-random on 2022-10-11 22:16:30 UTC + * Install the version of this package in + * the plus-ado folder in the test folder + cap mkdir "${runfldr}/dev-env" + repado using "${runfldr}/dev-env" -gen random = runiform() - -gen tmt = (random > .33) -replace tmt = 2 if (random > .66) - -split make, gen(strata) -encode strata1, gen(stratum) -drop strata* - -local vars price mpg trunk headroom weight length turn displacement gear_ratio - -qui do "src/ado_files/iebaltab.ado" -qui do "run/run_utils.do" - -local out "run/iebaltab/outputs/iebaltab2" -ie_recurse_mkdir, folder("`out'") - -**# Export options --------------------------------------------------------------- - -preserve - iebaltab `vars', grpvar(foreign) browse -restore - -iebaltab `vars', grpvar(foreign) /// - savexlsx("`out'/2g.xlsx") /// - savecsv("`out'/2g-control.csv") /// - savetex("`out'/2g.tex") /// - replace - -iebaltab `vars', grpvar(tmt) /// - savetex("`out'/3g.tex") /// - replace - -**# Column and row options ----------------------------------------------------- - -* Should throw error: file exists - cap iebaltab `vars', grpvar(foreign) /// - control(1) /// - savetex("`out'/2g.tex") - - assert _rc == 602 - -* control - iebaltab `vars', grpvar(foreign) /// - control(0) /// - savetex("`out'/2g-control.tex") /// - replace - -* Three groups - iebaltab `vars', grpvar(tmt) /// - savetex("`out'/3g.tex") /// - replace - - iebaltab `vars', grpvar(tmt) /// - control(0) /// - savetex("`out'/3g-control.tex") /// - replace - -* order(groupcodelist) - iebaltab `vars', grpvar(tmt) /// - order(2) /// - savetex("`out'/3g-order.tex") /// - replace - - iebaltab `vars', grpvar(tmt) /// - control(0) order(2 1) /// - savetex("`out'/3g-control-order.tex") /// - replace - -* total - iebaltab `vars', grpvar(tmt) /// - total /// - savetex("`out'/3g-total.tex") /// - replace - - iebaltab `vars', grpvar(foreign) /// - total /// - savetex("`out'/2g-total.tex") /// - replace - -* onerow - iebaltab `vars', grpvar(foreign) /// - onerow /// - savetex("`out'/2g-onerow.tex") /// - replace - -**# Estimation options --------------------------------------------------------- - iebaltab `vars', grpvar(foreign) /// - fixedeffect(stratum) /// - savetex("`out'/2g-fe.tex") /// - replace - - iebaltab `vars', grpvar(tmt) /// - covariates(foreign) /// - stats(pair(p)) /// - savetex("`out'/3g-cov.tex") /// - replace - - iebaltab `vars', grpvar(foreign) /// - fixedeffect(stratum) /// - ftest /// - savetex("`out'/2g-ftest.tex") /// - replace - - iebaltab `vars', grpvar(foreign) /// - fixedeffect(stratum) /// - feqtest /// - savetex("`out'/2g-feqtest.tex") /// - replace - - iebaltab `vars', grpvar(foreign) /// - stats(pair(p)) /// - savetex("`out'/2g-pair.tex") /// - replace - - iebaltab `vars', grpvar(foreign) /// - vce(cluster stratum) /// - stats(pair(p)) /// - savetex("`out'/2g-cluster.tex") /// - replace - -**# Stat display options ------------------------------------------------------- - - iebaltab `vars', grpvar(foreign) /// - format("%9.2f") /// - savetex("`out'/2g-fmt.tex") /// - replace - - iebaltab `vars', grpvar(foreign) /// - starsnoadd /// - savetex("`out'/2g-nostars.tex") /// - replace - - iebaltab `vars', grpvar(foreign) /// - starlevels(.05 .01 .001) /// - savetex("`out'/2g-stars.tex") /// - replace - - -/* This should work at some point, but is not yet implemented - iebaltab `vars', grpvar(foreign) /// - stats(pair(diff se)) /// - savetex("`out'/2g-diff-se.tex") /// - replace -*/ -exit + cap net uninstall ietoolkit + net install ietoolkit, from("${ietk_clone}/src") replace + + * Set version to target version of ietoolkit + ieboilstart , version(13.1) + `r(version)' + + * Load utils commands + qui do "${runfldr}/run_utils.do" + + ************************ + * Run tests + + sysuse auto, clear + + set seed 232197 // obtained from bit.ly/stata-random on 2022-10-11 22:16:30 UTC + + gen random = runiform() + + gen tmt = (random > .33) + replace tmt = 2 if (random > .66) + + split make, gen(strata) + encode strata1, gen(stratum) + drop strata* + + local vars price mpg trunk headroom weight length turn displacement gear_ratio + + local out "${runfldr}/iebaltab/outputs/iebaltab2" + ie_recurse_mkdir, folder("`out'") + + **# Export options --------------------------------------------------------------- + + preserve + iebaltab `vars', grpvar(foreign) browse + restore + + iebaltab `vars', grpvar(foreign) /// + savexlsx("`out'/2g.xlsx") /// + savecsv("`out'/2g-control.csv") /// + savetex("`out'/2g.tex") /// + replace + + iebaltab `vars', grpvar(tmt) /// + savetex("`out'/3g.tex") /// + replace + + **# Column and row options ----------------------------------------------------- + + * Should throw error: file exists + cap iebaltab `vars', grpvar(foreign) /// + control(1) /// + savetex("`out'/2g.tex") + + assert _rc == 602 + + * control + iebaltab `vars', grpvar(foreign) /// + control(0) /// + savetex("`out'/2g-control.tex") /// + replace + + * Three groups + iebaltab `vars', grpvar(tmt) /// + savetex("`out'/3g.tex") /// + replace + + iebaltab `vars', grpvar(tmt) /// + control(0) /// + savetex("`out'/3g-control.tex") /// + replace + + * order(groupcodelist) + iebaltab `vars', grpvar(tmt) /// + order(2) /// + savetex("`out'/3g-order.tex") /// + replace + + iebaltab `vars', grpvar(tmt) /// + control(0) order(2 1) /// + savetex("`out'/3g-control-order.tex") /// + replace + + * total + iebaltab `vars', grpvar(tmt) /// + total /// + savetex("`out'/3g-total.tex") /// + replace + + iebaltab `vars', grpvar(foreign) /// + total /// + savetex("`out'/2g-total.tex") /// + replace + + * onerow + iebaltab `vars', grpvar(foreign) /// + onerow /// + savetex("`out'/2g-onerow.tex") /// + replace + + **# Estimation options --------------------------------------------------------- + iebaltab `vars', grpvar(foreign) /// + fixedeffect(stratum) /// + savetex("`out'/2g-fe.tex") /// + replace + + iebaltab `vars', grpvar(tmt) /// + covariates(foreign) /// + stats(pair(p)) /// + savetex("`out'/3g-cov.tex") /// + replace + + iebaltab `vars', grpvar(foreign) /// + fixedeffect(stratum) /// + ftest /// + savetex("`out'/2g-ftest.tex") /// + replace + + iebaltab `vars', grpvar(foreign) /// + fixedeffect(stratum) /// + feqtest /// + savetex("`out'/2g-feqtest.tex") /// + replace + + iebaltab `vars', grpvar(foreign) /// + stats(pair(p)) /// + savetex("`out'/2g-pair.tex") /// + replace + + iebaltab `vars', grpvar(foreign) /// + vce(cluster stratum) /// + stats(pair(p)) /// + savetex("`out'/2g-cluster.tex") /// + replace + + **# Stat display options ------------------------------------------------------- + + iebaltab `vars', grpvar(foreign) /// + format("%9.2f") /// + savetex("`out'/2g-fmt.tex") /// + replace + + iebaltab `vars', grpvar(foreign) /// + starsnoadd /// + savetex("`out'/2g-nostars.tex") /// + replace + + iebaltab `vars', grpvar(foreign) /// + starlevels(.05 .01 .001) /// + savetex("`out'/2g-stars.tex") /// + replace + + + /* This should work at some point, but is not yet implemented + iebaltab `vars', grpvar(foreign) /// + stats(pair(diff se)) /// + savetex("`out'/2g-diff-se.tex") /// + replace + */ + exit diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv1.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv1.csv index e4cac216..fd61d8d5 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv1.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv1.csv @@ -7,4 +7,4 @@ "","","(486.238)","","(470.476)","","0.339","","" "F-test of joint significance (F-stat)","","","","","","","","1.325" "F-test, number of observations","","","","","","","","74" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv1"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx1"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex1"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex1-note"") groupvar(tmt_cl) replace ftest feqtest control(1) cov(mpg) fixed(foreign)] ","","","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv1"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx1"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex1"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex1-note"") groupvar(tmt_cl) replace ftest feqtest control(1) cov(mpg) fixed(foreign)] ","","","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv10.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv10.csv index d2d9040f..480c4819 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv10.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv10.csv @@ -8,4 +8,4 @@ "F-test of joint significance (F-stat)","","","","","","","","","","1.128" "F-test, number of observations","","","","","","","","","","74" "F-test, number of clusters","","","","","","","","","","4" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Errors are clustered at variable: [test_cluster_var]. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv10"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx10"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex10"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex10-note"") groupvar(tmt_cl) replace vce(cluster test_cluster_var) ftest feqtest total cov(mpg) fixed(foreign) addnote(""added cluster"")] added cluster","","","","","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Errors are clustered at variable: [test_cluster_var]. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv10"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx10"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex10"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex10-note"") groupvar(tmt_cl) replace vce(cluster test_cluster_var) ftest feqtest total cov(mpg) fixed(foreign) addnote(""added cluster"")] added cluster","","","","","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv11.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv11.csv index 3ff91b9d..12dd0a6c 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv11.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv11.csv @@ -6,4 +6,4 @@ "price","5961.065","6312.465","-351.401" "","(470.476)","(486.238)","" "Number of observations","31","43","74" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv11"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx11"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex11"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex11-note"") groupvar(tmt_cl) replace onerow cov(mpg) fixed(foreign) addnote(""added onerow"")] added onerow","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv11"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx11"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex11"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex11-note"") groupvar(tmt_cl) replace onerow cov(mpg) fixed(foreign) addnote(""added onerow"")] added onerow","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv12.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv12.csv index 12c5b0df..b393c110 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv12.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv12.csv @@ -8,4 +8,4 @@ "F-test of joint significance (F-stat)","","","","","1.128" "Number of observations","74","31","43","74","74" "Number of clusters","4","2","2","4","4" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Errors are clustered at variable: [test_cluster_var]. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv12"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx12"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex12"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex12-note"") groupvar(tmt_cl) replace onerow vce(cluster test_cluster_var) ftest feqtest total cov(mpg) fixed(foreign) addnote(""added onerow and cluster"") browse] added onerow and cluster","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Errors are clustered at variable: [test_cluster_var]. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv12"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx12"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex12"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex12-note"") groupvar(tmt_cl) replace onerow vce(cluster test_cluster_var) ftest feqtest total cov(mpg) fixed(foreign) addnote(""added onerow and cluster"") browse] added onerow and cluster","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv13.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv13.csv index e5ae5108..acc4263e 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv13.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv13.csv @@ -7,4 +7,4 @@ "","","(486.238)","","(470.476)","","" "F-test of joint significance (P-value)","","","","","","0.273" "F-test, number of observations","","","","","","74" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv13"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx13"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex13"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex13-note"") groupvar(tmt_cl) replace ftest control(1) stats(f(p) pair(nrmd)) cov(mpg) fixed(foreign)] ","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv13"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx13"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex13"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex13-note"") groupvar(tmt_cl) replace ftest control(1) stats(f(p) pair(nrmd)) cov(mpg) fixed(foreign)] ","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv14.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv14.csv index a62e31c1..649e58c8 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv14.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv14.csv @@ -5,4 +5,4 @@ "","","(130.959)","","(117.753)","","0.106" "price","43","6312.465","31","5961.065","74","0.928" "","","(486.238)","","(470.476)","","0.339" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in f-test regressions: [mpg]. Fixed effect used in f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv14"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx14"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex14"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex14-note"") groupvar(tmt_cl) replace ftest feqtest control(1) stats(pair(none)) cov(mpg) fixed(foreign)] ","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in f-test regressions: [mpg]. Fixed effect used in f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv14"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx14"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex14"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex14-note"") groupvar(tmt_cl) replace ftest feqtest control(1) stats(pair(none)) cov(mpg) fixed(foreign)] ","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv15.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv15.csv index 463004ed..ea145a26 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv15.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv15.csv @@ -7,4 +7,4 @@ "","","(486.238)","","(470.476)","","" "F-test of joint significance (F-stat)","","","","","","1.325" "F-test, number of observations","","","","","","74" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv15"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx15"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex15"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex15-note"") groupvar(tmt_cl) replace ftest control(1) stats(pair(se)) cov(mpg) fixed(foreign)] ","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv15"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx15"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex15"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex15-note"") groupvar(tmt_cl) replace ftest control(1) stats(pair(se)) cov(mpg) fixed(foreign)] ","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv16.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv16.csv index dc0b6f1e..19ef48e8 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv16.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv16.csv @@ -5,4 +5,4 @@ "","","(117.753)","","(130.959)","","" "price","31","5961.065","43","6312.465","74","-0.120" "","","(470.476)","","(486.238)","","" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv16"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx16"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex16"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex16-note"") groupvar(tmt_cl) replace stats(pair(nrmd)) cov(mpg) fixed(foreign)] ","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv16"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx16"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex16"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex16-note"") groupvar(tmt_cl) replace stats(pair(nrmd)) cov(mpg) fixed(foreign)] ","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv17.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv17.csv index 2f529360..aecf74fe 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv17.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv17.csv @@ -5,4 +5,4 @@ "","","(117.753)","","(130.959)","","" "price","31","5961.065","43","6312.465","74","-0.202" "","","(470.476)","","(486.238)","","" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv17"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx17"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex17"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex17-note"") groupvar(tmt_cl) replace stats(pair(nrmb)) cov(mpg) fixed(foreign)] ","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv17"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx17"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex17"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex17-note"") groupvar(tmt_cl) replace stats(pair(nrmb)) cov(mpg) fixed(foreign)] ","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv18.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv18.csv index 59b169a9..70b9df63 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv18.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv18.csv @@ -5,4 +5,4 @@ "","","(117.753)","","(130.959)","","" "price","31","5961.065","43","6312.465","74","-351.401" "","","(470.476)","","(486.238)","","" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv18"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx18"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex18"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex18-note"") groupvar(tmt_cl) replace stats(pair(diff))] ","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv18"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx18"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex18"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex18-note"") groupvar(tmt_cl) replace stats(pair(diff))] ","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv19.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv19.csv index 5130de89..9b25f331 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv19.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv19.csv @@ -5,4 +5,4 @@ "","","(117.753)","","(130.959)","","" "price","31","5961.065","43","6312.465","74","-351.401" "","","(470.476)","","(486.238)","","" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv19"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx19"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex19"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex19-note"") groupvar(tmt_cl) replace stats(pair(beta))] ","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv19"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx19"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex19"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex19-note"") groupvar(tmt_cl) replace stats(pair(beta))] ","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv20.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv20.csv index 96c6739d..df8b41a6 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv20.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv20.csv @@ -5,4 +5,4 @@ "","","(4.30e+05)","","(7.37e+05)","","" "price","31","5961.065","43","6312.465","74","-0.520" "","","(6.86e+06)","","(1.02e+07)","","" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Errors are robust. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv20"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx20"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex20"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex20-note"") groupvar(tmt_cl) replace stats(desc(var) pair(t)) vce(robust)] ","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Errors are robust. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv20"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx20"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex20"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex20-note"") groupvar(tmt_cl) replace stats(desc(var) pair(t)) vce(robust)] ","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv21.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv21.csv index bcb423e2..3f7b03d3 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv21.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv21.csv @@ -5,4 +5,4 @@ "","","(654.062)","","(1017.754)","","" "price","31","5961.065","43","6312.465","74","0.657" "","","(2631.060)","","(3404.746)","","" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Errors are estimeated using bootstrap. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv21"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx21"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex21"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex21-note"") groupvar(tmt_cl) replace stats(desc(sd) pair(p)) vce(bootstrap)] ","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Errors are estimeated using bootstrap. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv21"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx21"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex21"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex21-note"") groupvar(tmt_cl) replace stats(desc(sd) pair(p)) vce(bootstrap)] ","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv22.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv22.csv index 9b564b83..67fa371f 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv22.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv22.csv @@ -16,4 +16,4 @@ "price","5961.065","5702.614","0.695" "","(470.476)","(442.505)","" "Number of observations","31","43","74" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.001, **=.2, *=.4. Full user input as written by user: [iebaltab mpg headroom trunk weight length turn price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv22"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx22"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex22"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex22-note"") groupvar(tmt_cl) replace onerow stats(pair(p)) starlevels(.4 .2 .001)] ","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.001, **=.2, *=.4. Full user input as written by user: [iebaltab mpg headroom trunk weight length turn price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv22"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx22"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex22"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex22-note"") groupvar(tmt_cl) replace onerow stats(pair(p)) starlevels(.4 .2 .001)] ","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv6.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv6.csv index 911d6489..f84f4279 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv6.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv6.csv @@ -7,4 +7,4 @@ "","","(342.872)","","(776.498)","","(516.864)","","(605.744)","","(777.763)","","0.355","","","","","","","","","","","","" "F-test of joint significance (F-stat)","","","","","","","","","","","","","","1.388","","2.807*","","0.828","","0.605","","0.012","","0.182" "F-test, number of observations","","","","","","","","","","","","","","43","","41","","34","","40","","33","","31" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv6"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx6"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex6"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex6-note"") groupvar(tmt) replace ftest feqtest total rowvarlabels cov(mpg) fixed(foreign) addnote(""Many groups, rowvarlabels"")] Many groups, rowvarlabels","","","","","","","","","","","","","","","","","","","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv6"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx6"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex6"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex6-note"") groupvar(tmt) replace ftest feqtest total rowvarlabels cov(mpg) fixed(foreign) addnote(""Many groups, rowvarlabels"")] Many groups, rowvarlabels","","","","","","","","","","","","","","","","","","","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv7.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv7.csv index dffb1e4e..bd220164 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv7.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv7.csv @@ -5,4 +5,4 @@ "","","(90.347)","","(191.277)","","(177.127)","","(157.068)","","(172.374)","","","","","","" "price","74","6165.257","21","5373.048","12","6123.417","19","5858.526","22","7209.182","40","-485.479","31","264.890","41","1350.656" "","","(342.872)","","(516.864)","","(777.763)","","(605.744)","","(776.498)","","","","","","" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv7"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx7"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex7"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex7-note"") groupvar(tmt) replace total order(4 10231) control(6) groupcodes cov(mpg) fixed(foreign) addnote(""column order should be 4 10231 6 2, and 6 is control so pair test only with this group"")] column order should be 4 10231 6 2, and 6 is control so pair test only with this group","","","","","","","","","","","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv7"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx7"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex7"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex7-note"") groupvar(tmt) replace total order(4 10231) control(6) groupcodes cov(mpg) fixed(foreign) addnote(""column order should be 4 10231 6 2, and 6 is control so pair test only with this group"")] column order should be 4 10231 6 2, and 6 is control so pair test only with this group","","","","","","","","","","","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv8.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv8.csv index 90f9bcf0..64f9994a 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv8.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv8.csv @@ -7,4 +7,4 @@ "","","(342.872)","","(605.744)","","(776.498)","","(516.864)","","(777.763)","","","","","","" "Headroom ""Height"" quote","74","2.993","19","2.895","22","3.114","21","2.952","12","3.000","41","0.219","40","0.058","31","0.105" "","","(0.098)","","(0.190)","","(0.189)","","(0.176)","","(0.275)","","","","","","" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price headroom , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv8"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx8"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex8"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex8-note"") groupvar(tmt) replace total control(6) rowvarlabels grouplabels(`""6 Quotes, and comma "","" @ 4 Pizza & Pineapple (USD$) ""') totallabel(""Total single ' quote"") cov(mpg) fixed(foreign) rowlabels(`""price St*r and sub _script @ headroom Headroom ""Height"" quote ""') addnote(""Row column manual ($) lables."")] Row column manual ($) lables.","","","","","","","","","","","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price headroom , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv8"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx8"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex8"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex8-note"") groupvar(tmt) replace total control(6) rowvarlabels grouplabels(`""6 Quotes, and comma "","" @ 4 Pizza & Pineapple (USD$) ""') totallabel(""Total single ' quote"") cov(mpg) fixed(foreign) rowlabels(`""price St*r and sub _script @ headroom Headroom ""Height"" quote ""') addnote(""Row column manual ($) lables."")] Row column manual ($) lables.","","","","","","","","","","","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-csv9.csv b/run/iebaltab/outputs/iebaltab1/iebt-csv9.csv index d8cb00b8..f2d5465c 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-csv9.csv +++ b/run/iebaltab/outputs/iebaltab1/iebt-csv9.csv @@ -7,4 +7,4 @@ "","","(470.476)","","(486.238)","","0.392","","" "F-test of joint significance (F-stat)","","","","","","","","1.324" "F-test, number of observations","","","","","","","","71" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""run/iebaltab/outputs/iebaltab1/iebt-csv9"") savexlsx(""run/iebaltab/outputs/iebaltab1/iebt-xlsx9"") savetex(""run/iebaltab/outputs/iebaltab1/iebt-tex9"") texnotefile(""run/iebaltab/outputs/iebaltab1/iebt-tex9-note"") groupvar(tmt_cl) replace ftest feqtest cov(mpg) fixed(foreign) addnote(""Warning for missing value in fixedeffect(foreign) and in covariates(mpg)"")] Warning for missing value in fixedeffect(foreign) and in covariates(mpg)","","","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv9"") savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx9"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex9"") texnotefile(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex9-note"") groupvar(tmt_cl) replace ftest feqtest cov(mpg) fixed(foreign) addnote(""Warning for missing value in fixedeffect(foreign) and in covariates(mpg)"")] Warning for missing value in fixedeffect(foreign) and in covariates(mpg)","","","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex1-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex1-note.tex index f0bf26c0..dbe10279 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex1-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex1-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv1") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx1") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex1") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex1-note") groupvar(tmt\_cl) replace ftest feqtest control(1) cov(mpg) fixed(foreign)] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv1") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx1") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex1") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex1-note") groupvar(tmt\_cl) replace ftest feqtest control(1) cov(mpg) fixed(foreign)] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex1.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex1.tex index 011bccc7..8d9e70d2 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex1.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex1.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv1") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx1") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex1") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex1-note") groupvar(tmt_cl) replace ftest feqtest control(1) cov(mpg) fixed(foreign) +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv1") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx1") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex1") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex1-note") groupvar(tmt_cl) replace ftest feqtest control(1) cov(mpg) fixed(foreign) \begin{tabular}{@{\extracolsep{5pt}}lcccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex10-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex10-note.tex index 80338f39..5db8f522 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex10-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex10-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Errors are clustered at variable: [test\_cluster\_var]. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv10") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx10") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex10") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex10-note") groupvar(tmt\_cl) replace vce(cluster test\_cluster\_var) ftest feqtest total cov(mpg) fixed(foreign) addnote("added cluster")] added cluster +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Errors are clustered at variable: [test\_cluster\_var]. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv10") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx10") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex10") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex10-note") groupvar(tmt\_cl) replace vce(cluster test\_cluster\_var) ftest feqtest total cov(mpg) fixed(foreign) addnote("added cluster")] added cluster diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex10.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex10.tex index ef6126ed..ba48992f 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex10.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex10.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv10") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx10") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex10") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex10-note") groupvar(tmt_cl) replace vce(cluster test_cluster_var) ftest feqtest total cov(mpg) fixed(foreign) addnote("added cluster") +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv10") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx10") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex10") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex10-note") groupvar(tmt_cl) replace vce(cluster test_cluster_var) ftest feqtest total cov(mpg) fixed(foreign) addnote("added cluster") \begin{tabular}{@{\extracolsep{5pt}}lcccccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex11-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex11-note.tex index 72777961..dcf9947a 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex11-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex11-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv11") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx11") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex11") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex11-note") groupvar(tmt\_cl) replace onerow cov(mpg) fixed(foreign) addnote("added onerow")] added onerow +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv11") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx11") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex11") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex11-note") groupvar(tmt\_cl) replace onerow cov(mpg) fixed(foreign) addnote("added onerow")] added onerow diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex11.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex11.tex index 51bf05db..ae78be46 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex11.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex11.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv11") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx11") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex11") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex11-note") groupvar(tmt_cl) replace onerow cov(mpg) fixed(foreign) addnote("added onerow") +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv11") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx11") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex11") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex11-note") groupvar(tmt_cl) replace onerow cov(mpg) fixed(foreign) addnote("added onerow") \begin{tabular}{@{\extracolsep{5pt}}lccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex12-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex12-note.tex index e4103b86..3411af8a 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex12-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex12-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Errors are clustered at variable: [test\_cluster\_var]. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv12") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx12") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex12") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex12-note") groupvar(tmt\_cl) replace onerow vce(cluster test\_cluster\_var) ftest feqtest total cov(mpg) fixed(foreign) addnote("added onerow and cluster") browse] added onerow and cluster +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Errors are clustered at variable: [test\_cluster\_var]. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv12") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx12") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex12") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex12-note") groupvar(tmt\_cl) replace onerow vce(cluster test\_cluster\_var) ftest feqtest total cov(mpg) fixed(foreign) addnote("added onerow and cluster") browse] added onerow and cluster diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex12.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex12.tex index a8f7d269..81771bd7 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex12.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex12.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv12") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx12") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex12") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex12-note") groupvar(tmt_cl) replace onerow vce(cluster test_cluster_var) ftest feqtest total cov(mpg) fixed(foreign) addnote("added onerow and cluster") browse +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv12") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx12") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex12") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex12-note") groupvar(tmt_cl) replace onerow vce(cluster test_cluster_var) ftest feqtest total cov(mpg) fixed(foreign) addnote("added onerow and cluster") browse \begin{tabular}{@{\extracolsep{5pt}}lccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex13-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex13-note.tex index 4e7861b3..8bd31b1f 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex13-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex13-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv13") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx13") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex13") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex13-note") groupvar(tmt\_cl) replace ftest control(1) stats(f(p) pair(nrmd)) cov(mpg) fixed(foreign)] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv13") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx13") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex13") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex13-note") groupvar(tmt\_cl) replace ftest control(1) stats(f(p) pair(nrmd)) cov(mpg) fixed(foreign)] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex13.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex13.tex index fa05895c..f50fc1a3 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex13.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex13.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv13") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx13") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex13") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex13-note") groupvar(tmt_cl) replace ftest control(1) stats(f(p) pair(nrmd)) cov(mpg) fixed(foreign) +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv13") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx13") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex13") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex13-note") groupvar(tmt_cl) replace ftest control(1) stats(f(p) pair(nrmd)) cov(mpg) fixed(foreign) \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex14-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex14-note.tex index 19b0313a..77a610e9 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex14-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex14-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in f-test regressions: [mpg]. Fixed effect used in f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv14") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx14") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex14") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex14-note") groupvar(tmt\_cl) replace ftest feqtest control(1) stats(pair(none)) cov(mpg) fixed(foreign)] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in f-test regressions: [mpg]. Fixed effect used in f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv14") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx14") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex14") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex14-note") groupvar(tmt\_cl) replace ftest feqtest control(1) stats(pair(none)) cov(mpg) fixed(foreign)] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex14.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex14.tex index a706e84e..7b66201b 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex14.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex14.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv14") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx14") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex14") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex14-note") groupvar(tmt_cl) replace ftest feqtest control(1) stats(pair(none)) cov(mpg) fixed(foreign) +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv14") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx14") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex14") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex14-note") groupvar(tmt_cl) replace ftest feqtest control(1) stats(pair(none)) cov(mpg) fixed(foreign) \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex15-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex15-note.tex index b945fa30..f7a322ec 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex15-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex15-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv15") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx15") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex15") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex15-note") groupvar(tmt\_cl) replace ftest control(1) stats(pair(se)) cov(mpg) fixed(foreign)] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv15") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx15") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex15") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex15-note") groupvar(tmt\_cl) replace ftest control(1) stats(pair(se)) cov(mpg) fixed(foreign)] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex15.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex15.tex index 72f67e4d..9b11afff 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex15.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex15.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv15") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx15") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex15") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex15-note") groupvar(tmt_cl) replace ftest control(1) stats(pair(se)) cov(mpg) fixed(foreign) +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv15") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx15") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex15") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex15-note") groupvar(tmt_cl) replace ftest control(1) stats(pair(se)) cov(mpg) fixed(foreign) \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex16-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex16-note.tex index 1a04f89c..875b0cc6 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex16-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex16-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv16") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx16") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex16") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex16-note") groupvar(tmt\_cl) replace stats(pair(nrmd)) cov(mpg) fixed(foreign)] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv16") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx16") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex16") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex16-note") groupvar(tmt\_cl) replace stats(pair(nrmd)) cov(mpg) fixed(foreign)] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex16.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex16.tex index 66ff7bd4..7993b850 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex16.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex16.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv16") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx16") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex16") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex16-note") groupvar(tmt_cl) replace stats(pair(nrmd)) cov(mpg) fixed(foreign) +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv16") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx16") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex16") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex16-note") groupvar(tmt_cl) replace stats(pair(nrmd)) cov(mpg) fixed(foreign) \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex17-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex17-note.tex index 40dcc9d6..958d33e5 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex17-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex17-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv17") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx17") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex17") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex17-note") groupvar(tmt\_cl) replace stats(pair(nrmb)) cov(mpg) fixed(foreign)] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv17") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx17") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex17") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex17-note") groupvar(tmt\_cl) replace stats(pair(nrmb)) cov(mpg) fixed(foreign)] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex17.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex17.tex index b1ff3a0d..e8a64b11 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex17.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex17.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv17") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx17") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex17") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex17-note") groupvar(tmt_cl) replace stats(pair(nrmb)) cov(mpg) fixed(foreign) +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv17") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx17") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex17") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex17-note") groupvar(tmt_cl) replace stats(pair(nrmb)) cov(mpg) fixed(foreign) \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex18-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex18-note.tex index 5c66969d..1b03a956 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex18-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex18-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv18") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx18") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex18") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex18-note") groupvar(tmt\_cl) replace stats(pair(diff))] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv18") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx18") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex18") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex18-note") groupvar(tmt\_cl) replace stats(pair(diff))] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex18.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex18.tex index 5a80272a..9784ec03 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex18.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex18.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv18") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx18") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex18") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex18-note") groupvar(tmt_cl) replace stats(pair(diff)) +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv18") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx18") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex18") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex18-note") groupvar(tmt_cl) replace stats(pair(diff)) \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex19-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex19-note.tex index 2b1aac64..1b9f664d 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex19-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex19-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv19") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx19") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex19") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex19-note") groupvar(tmt\_cl) replace stats(pair(beta))] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv19") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx19") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex19") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex19-note") groupvar(tmt\_cl) replace stats(pair(beta))] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex19.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex19.tex index b518cf7d..b03578f8 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex19.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex19.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv19") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx19") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex19") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex19-note") groupvar(tmt_cl) replace stats(pair(beta)) +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv19") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx19") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex19") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex19-note") groupvar(tmt_cl) replace stats(pair(beta)) \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex2.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex2.tex index bbfe7aa8..5fa8c818 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex2.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex2.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , groupvar(tmt_cl) replace ftest feqtest control(1) savetex("run/iebaltab/outputs/iebaltab1/iebt-tex2") cov(mpg) fixed(foreign) +%%% iebaltab weight price , groupvar(tmt_cl) replace ftest feqtest control(1) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex2") cov(mpg) fixed(foreign) \begin{tabular}{@{\extracolsep{5pt}}lcccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -18,6 +18,6 @@ F-test, number of observations & & & & & & & & 74 \\ \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{8}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , groupvar(tmt\_cl) replace ftest feqtest control(1) savetex("run/iebaltab/outputs/iebaltab1/iebt-tex2") cov(mpg) fixed(foreign)] } +\multicolumn{8}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , groupvar(tmt\_cl) replace ftest feqtest control(1) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex2") cov(mpg) fixed(foreign)] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex20-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex20-note.tex index 960ceabd..8497b416 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex20-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex20-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Errors are robust. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv20") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx20") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex20") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex20-note") groupvar(tmt\_cl) replace stats(desc(var) pair(t)) vce(robust)] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Errors are robust. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv20") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx20") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex20") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex20-note") groupvar(tmt\_cl) replace stats(desc(var) pair(t)) vce(robust)] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex20.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex20.tex index ad19f220..b177bccc 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex20.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex20.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv20") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx20") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex20") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex20-note") groupvar(tmt_cl) replace stats(desc(var) pair(t)) vce(robust) +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv20") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx20") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex20") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex20-note") groupvar(tmt_cl) replace stats(desc(var) pair(t)) vce(robust) \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex21-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex21-note.tex index 67670056..a7c94210 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex21-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex21-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Errors are estimeated using bootstrap. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv21") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx21") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex21") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex21-note") groupvar(tmt\_cl) replace stats(desc(sd) pair(p)) vce(bootstrap)] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Errors are estimeated using bootstrap. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv21") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx21") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex21") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex21-note") groupvar(tmt\_cl) replace stats(desc(sd) pair(p)) vce(bootstrap)] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex21.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex21.tex index 29271c38..ccbc7a44 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex21.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex21.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv21") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx21") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex21") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex21-note") groupvar(tmt_cl) replace stats(desc(sd) pair(p)) vce(bootstrap) +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv21") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx21") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex21") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex21-note") groupvar(tmt_cl) replace stats(desc(sd) pair(p)) vce(bootstrap) \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex22-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex22-note.tex index 068e029f..74c1d3a3 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex22-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex22-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.001, **=.2, *=.4. Full user input as written by user: [iebaltab mpg headroom trunk weight length turn price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv22") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx22") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex22") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex22-note") groupvar(tmt\_cl) replace onerow stats(pair(p)) starlevels(.4 .2 .001)] +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.001, **=.2, *=.4. Full user input as written by user: [iebaltab mpg headroom trunk weight length turn price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv22") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx22") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex22") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex22-note") groupvar(tmt\_cl) replace onerow stats(pair(p)) starlevels(.4 .2 .001)] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex22.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex22.tex index bc3a3b2f..bfbf02de 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex22.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex22.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab mpg headroom trunk weight length turn price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv22") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx22") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex22") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex22-note") groupvar(tmt_cl) replace onerow stats(pair(p)) starlevels(.4 .2 .001) +%%% iebaltab mpg headroom trunk weight length turn price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv22") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx22") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex22") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex22-note") groupvar(tmt_cl) replace onerow stats(pair(p)) starlevels(.4 .2 .001) \begin{tabular}{@{\extracolsep{5pt}}lccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex23.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex23.tex index fec2d39c..c1fdbf49 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex23.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex23.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab mpg trunk weight turn price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv23") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx23") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex23") grpvar(tmt_cl) grpcodes replace starsnoadd stats(pair(p)) tblnonote grplabels("0 Control @ 1 Treatment") +%%% iebaltab mpg trunk weight turn price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv23") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx23") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex23") grpvar(tmt_cl) grpcodes replace starsnoadd stats(pair(p)) tblnonote grplabels("0 Control @ 1 Treatment") \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex24a.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex24a.tex index 732f9d28..c7dd72f9 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex24a.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex24a.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv24a") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx24a") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex24a-note") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex24a") replace groupvar(tmt_cl) nonote addnote(`"added a "tricky" note"') +%%% iebaltab weight , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv24a") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx24a") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex24a-note") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex24a") replace groupvar(tmt_cl) nonote addnote(`"added a "tricky" note"') \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex24b.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex24b.tex index 107ff39f..66c8e441 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex24b.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex24b.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv24b") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx24b") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex24b") replace groupvar(tmt_cl) nonote +%%% iebaltab weight , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv24b") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx24b") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex24b") replace groupvar(tmt_cl) nonote \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex3.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex3.tex index 0f6fac63..22fe22f1 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex3.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex3.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , groupvar(tmt_cl) replace ftest feqtest control(1) savetex("run/iebaltab/outputs/iebaltab1/iebt-tex3") cov(mpg) fixed(foreign) texcolwidth(4cm) addnote("Options used: texcolwidth(3cm) short first column ") +%%% iebaltab weight price , groupvar(tmt_cl) replace ftest feqtest control(1) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex3") cov(mpg) fixed(foreign) texcolwidth(4cm) addnote("Options used: texcolwidth(3cm) short first column ") \begin{tabular}{@{\extracolsep{5pt}}p{4cm}cccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -18,6 +18,6 @@ F-test, number of observations & & & & & & & & 74 \\ \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{8}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , groupvar(tmt\_cl) replace ftest feqtest control(1) savetex("run/iebaltab/outputs/iebaltab1/iebt-tex3") cov(mpg) fixed(foreign) texcolwidth(4cm) addnote("Options used: texcolwidth(3cm) short first column ")] Options used: texcolwidth(3cm) short first column } +\multicolumn{8}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , groupvar(tmt\_cl) replace ftest feqtest control(1) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex3") cov(mpg) fixed(foreign) texcolwidth(4cm) addnote("Options used: texcolwidth(3cm) short first column ")] Options used: texcolwidth(3cm) short first column } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex6-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex6-note.tex index f5c71e2e..d7ee8479 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex6-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex6-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv6") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx6") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex6") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex6-note") groupvar(tmt) replace ftest feqtest total rowvarlabels cov(mpg) fixed(foreign) addnote("Many groups, rowvarlabels")] Many groups, rowvarlabels +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv6") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx6") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex6") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex6-note") groupvar(tmt) replace ftest feqtest total rowvarlabels cov(mpg) fixed(foreign) addnote("Many groups, rowvarlabels")] Many groups, rowvarlabels diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex6.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex6.tex index 90c40d72..feeaa63e 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex6.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex6.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv6") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx6") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex6") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex6-note") groupvar(tmt) replace ftest feqtest total rowvarlabels cov(mpg) fixed(foreign) addnote("Many groups, rowvarlabels") +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv6") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx6") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex6") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex6-note") groupvar(tmt) replace ftest feqtest total rowvarlabels cov(mpg) fixed(foreign) addnote("Many groups, rowvarlabels") \begin{tabular}{@{\extracolsep{5pt}}lcccccccccccccccccccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex7-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex7-note.tex index b18a19aa..c83b6ac5 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex7-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex7-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv7") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx7") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex7") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex7-note") groupvar(tmt) replace total order(4 10231) control(6) groupcodes cov(mpg) fixed(foreign) addnote("column order should be 4 10231 6 2, and 6 is control so pair test only with this group")] column order should be 4 10231 6 2, and 6 is control so pair test only with this group +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv7") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx7") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex7") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex7-note") groupvar(tmt) replace total order(4 10231) control(6) groupcodes cov(mpg) fixed(foreign) addnote("column order should be 4 10231 6 2, and 6 is control so pair test only with this group")] column order should be 4 10231 6 2, and 6 is control so pair test only with this group diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex7.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex7.tex index fd888eed..834f8f92 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex7.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex7.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv7") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx7") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex7") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex7-note") groupvar(tmt) replace total order(4 10231) control(6) groupcodes cov(mpg) fixed(foreign) addnote("column order should be 4 10231 6 2, and 6 is control so pair test only with this group") +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv7") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx7") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex7") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex7-note") groupvar(tmt) replace total order(4 10231) control(6) groupcodes cov(mpg) fixed(foreign) addnote("column order should be 4 10231 6 2, and 6 is control so pair test only with this group") \begin{tabular}{@{\extracolsep{5pt}}lcccccccccccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex8-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex8-note.tex index d25c47b0..42881ddf 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex8-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex8-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price headroom , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv8") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx8") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex8") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex8-note") groupvar(tmt) replace total control(6) rowvarlabels grouplabels(`"6 Quotes, and comma "," @ 4 Pizza \& Pineapple (USD\$) "') totallabel("Total single ' quote") cov(mpg) fixed(foreign) rowlabels(`"price St*r and sub \_script @ headroom Headroom "Height" quote "') addnote("Row column manual (\$) lables.")] Row column manual (\$) lables. +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [mpg]. Fixed effect used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price headroom , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv8") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx8") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex8") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex8-note") groupvar(tmt) replace total control(6) rowvarlabels grouplabels(`"6 Quotes, and comma "," @ 4 Pizza \& Pineapple (USD\$) "') totallabel("Total single ' quote") cov(mpg) fixed(foreign) rowlabels(`"price St*r and sub \_script @ headroom Headroom "Height" quote "') addnote("Row column manual (\$) lables.")] Row column manual (\$) lables. diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex8.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex8.tex index dfeb323c..4c30dbdb 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex8.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex8.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price headroom , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv8") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx8") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex8") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex8-note") groupvar(tmt) replace total control(6) rowvarlabels grouplabels(`"6 Quotes, and comma "," @ 4 Pizza & Pineapple (USD$) "') totallabel("Total single ' quote") cov(mpg) fixed(foreign) rowlabels(`"price St*r and sub _script @ headroom Headroom "Height" quote "') addnote("Row column manual ($) lables.") +%%% iebaltab weight price headroom , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv8") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx8") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex8") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex8-note") groupvar(tmt) replace total control(6) rowvarlabels grouplabels(`"6 Quotes, and comma "," @ 4 Pizza & Pineapple (USD$) "') totallabel("Total single ' quote") cov(mpg) fixed(foreign) rowlabels(`"price St*r and sub _script @ headroom Headroom "Height" quote "') addnote("Row column manual ($) lables.") \begin{tabular}{@{\extracolsep{5pt}}lcccccccccccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex9-note.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex9-note.tex index aba6c772..af21f213 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex9-note.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex9-note.tex @@ -1 +1 @@ -If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv9") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx9") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex9") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex9-note") groupvar(tmt\_cl) replace ftest feqtest cov(mpg) fixed(foreign) addnote("Warning for missing value in fixedeffect(foreign) and in covariates(mpg)")] Warning for missing value in fixedeffect(foreign) and in covariates(mpg) +If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv9") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx9") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex9") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex9-note") groupvar(tmt\_cl) replace ftest feqtest cov(mpg) fixed(foreign) addnote("Warning for missing value in fixedeffect(foreign) and in covariates(mpg)")] Warning for missing value in fixedeffect(foreign) and in covariates(mpg) diff --git a/run/iebaltab/outputs/iebaltab1/iebt-tex9.tex b/run/iebaltab/outputs/iebaltab1/iebt-tex9.tex index 899efbef..367cbe45 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-tex9.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-tex9.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab weight price , savecsv("run/iebaltab/outputs/iebaltab1/iebt-csv9") savexlsx("run/iebaltab/outputs/iebaltab1/iebt-xlsx9") savetex("run/iebaltab/outputs/iebaltab1/iebt-tex9") texnotefile("run/iebaltab/outputs/iebaltab1/iebt-tex9-note") groupvar(tmt_cl) replace ftest feqtest cov(mpg) fixed(foreign) addnote("Warning for missing value in fixedeffect(foreign) and in covariates(mpg)") +%%% iebaltab weight price , savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-csv9") savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-xlsx9") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex9") texnotefile("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-tex9-note") groupvar(tmt_cl) replace ftest feqtest cov(mpg) fixed(foreign) addnote("Warning for missing value in fixedeffect(foreign) and in covariates(mpg)") \begin{tabular}{@{\extracolsep{5pt}}lcccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] diff --git a/run/iebaltab/outputs/iebaltab1/iebt-texdoc4.tex b/run/iebaltab/outputs/iebaltab1/iebt-texdoc4.tex index 1e14913b..497e9ef2 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-texdoc4.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-texdoc4.tex @@ -24,7 +24,7 @@ F-test, number of observations & & & & & & & & 74 \\ \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{8}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , groupvar(tmt\_cl) replace ftest feqtest control(1) savetex("run/iebaltab/outputs/iebaltab1/iebt-texdoc4") cov(mpg) fixed(foreign) texdocument] } +\multicolumn{8}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , groupvar(tmt\_cl) replace ftest feqtest control(1) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-texdoc4") cov(mpg) fixed(foreign) texdocument] } \end{tabular} \end{adjustbox} diff --git a/run/iebaltab/outputs/iebaltab1/iebt-texdoc5.tex b/run/iebaltab/outputs/iebaltab1/iebt-texdoc5.tex index 3274997a..bedbbeee 100644 --- a/run/iebaltab/outputs/iebaltab1/iebt-texdoc5.tex +++ b/run/iebaltab/outputs/iebaltab1/iebt-texdoc5.tex @@ -26,7 +26,7 @@ F-test, number of observations & & & & & & & & 74 \\ \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{8}{@{} p{1.5\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , groupvar(tmt\_cl) replace ftest feqtest control(1) savetex("run/iebaltab/outputs/iebaltab1/iebt-texdoc5") cov(mpg) fixed(foreign) texdocument texnotewidth(1.5) texcolwidth(2cm) texcaption("Table 5") texlabel("T5")] } +\multicolumn{8}{@{} p{1.5\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise and f-test regressions: [mpg]. Fixed effect used in pairwise and f-test regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab weight price , groupvar(tmt\_cl) replace ftest feqtest control(1) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab1/iebt-texdoc5") cov(mpg) fixed(foreign) texdocument texnotewidth(1.5) texcolwidth(2cm) texcaption("Table 5") texlabel("T5")] } \end{tabular} \end{adjustbox} diff --git a/run/iebaltab/outputs/iebaltab2/2g-cluster.tex b/run/iebaltab/outputs/iebaltab2/2g-cluster.tex index 602ddb6e..45adb152 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-cluster.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-cluster.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) vce(cluster stratum) stats(pair(p)) savetex("run/iebaltab/outputs/iebaltab2/2g-cluster.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) vce(cluster stratum) stats(pair(p)) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-cluster.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & 11 & (0.067) & 12 & (0.094) & 23 & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Errors are clustered at variable: [stratum]. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) vce(cluster stratum) stats(pair(p)) savetex("run/iebaltab/outputs/iebaltab2/2g-cluster.tex") replace] } +\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Errors are clustered at variable: [stratum]. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) vce(cluster stratum) stats(pair(p)) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-cluster.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g-control.csv b/run/iebaltab/outputs/iebaltab2/2g-control.csv index d8744e87..358ac51e 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-control.csv +++ b/run/iebaltab/outputs/iebaltab2/2g-control.csv @@ -19,4 +19,4 @@ "","","(11.824)","","(5.305)","","" "gear_ratio","52","2.807","22","3.507","74","-0.701***" "","","(0.047)","","(0.063)","","" -"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) savexlsx(""run/iebaltab/outputs/iebaltab2/2g.xlsx"") savecsv(""run/iebaltab/outputs/iebaltab2/2g-control.csv"") savetex(""run/iebaltab/outputs/iebaltab2/2g.tex"") replace] ","","","","","","" +"If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) savexlsx(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g.xlsx"") savecsv(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-control.csv"") savetex(""C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g.tex"") replace] ","","","","","","" diff --git a/run/iebaltab/outputs/iebaltab2/2g-control.tex b/run/iebaltab/outputs/iebaltab2/2g-control.tex index 00d6c022..e5661376 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-control.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-control.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) control(0) savetex("run/iebaltab/outputs/iebaltab2/2g-control.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) control(0) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-control.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.047) & & (0.063) & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) control(0) savetex("run/iebaltab/outputs/iebaltab2/2g-control.tex") replace] } +\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) control(0) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-control.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g-fe.tex b/run/iebaltab/outputs/iebaltab2/2g-fe.tex index 646a1fc6..8d8f2580 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-fe.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-fe.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) fixedeffect(stratum) savetex("run/iebaltab/outputs/iebaltab2/2g-fe.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) fixedeffect(stratum) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-fe.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.047) & & (0.063) & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Fixed effect used in pairwise regressions: [stratum]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) fixedeffect(stratum) savetex("run/iebaltab/outputs/iebaltab2/2g-fe.tex") replace] } +\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Fixed effect used in pairwise regressions: [stratum]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) fixedeffect(stratum) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-fe.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g-feqtest.tex b/run/iebaltab/outputs/iebaltab2/2g-feqtest.tex index 3a0bbdc6..9a7a6073 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-feqtest.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-feqtest.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) fixedeffect(stratum) feqtest savetex("run/iebaltab/outputs/iebaltab2/2g-feqtest.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) fixedeffect(stratum) feqtest savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-feqtest.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.047) & & (0.063) & & 0.771 & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{8}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Fixed effect used in pairwise and f-test regressions: [stratum]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) fixedeffect(stratum) feqtest savetex("run/iebaltab/outputs/iebaltab2/2g-feqtest.tex") replace] } +\multicolumn{8}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Fixed effect used in pairwise and f-test regressions: [stratum]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) fixedeffect(stratum) feqtest savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-feqtest.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g-fmt.tex b/run/iebaltab/outputs/iebaltab2/2g-fmt.tex index c835e66b..7d158475 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-fmt.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-fmt.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) format("%9.2f") savetex("run/iebaltab/outputs/iebaltab2/2g-fmt.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) format("%9.2f") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-fmt.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.05) & & (0.06) & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) format("\%9.2f") savetex("run/iebaltab/outputs/iebaltab2/2g-fmt.tex") replace] } +\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) format("\%9.2f") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-fmt.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g-ftest.tex b/run/iebaltab/outputs/iebaltab2/2g-ftest.tex index 091d5714..7eb52217 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-ftest.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-ftest.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) fixedeffect(stratum) ftest savetex("run/iebaltab/outputs/iebaltab2/2g-ftest.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) fixedeffect(stratum) ftest savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-ftest.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -32,6 +32,6 @@ F-test, number of observations & & & & & & .v \\ \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Fixed effect used in pairwise and f-test regressions: [stratum]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) fixedeffect(stratum) ftest savetex("run/iebaltab/outputs/iebaltab2/2g-ftest.tex") replace] } +\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Fixed effect used in pairwise and f-test regressions: [stratum]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) fixedeffect(stratum) ftest savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-ftest.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g-nostars.tex b/run/iebaltab/outputs/iebaltab2/2g-nostars.tex index 96a33b1a..9a78e167 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-nostars.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-nostars.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) starsnoadd savetex("run/iebaltab/outputs/iebaltab2/2g-nostars.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) starsnoadd savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-nostars.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.047) & & (0.063) & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) starsnoadd savetex("run/iebaltab/outputs/iebaltab2/2g-nostars.tex") replace] } +\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) starsnoadd savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-nostars.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g-onerow.tex b/run/iebaltab/outputs/iebaltab2/2g-onerow.tex index 3f8f2950..7b40dbea 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-onerow.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-onerow.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) onerow savetex("run/iebaltab/outputs/iebaltab2/2g-onerow.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) onerow savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-onerow.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -31,6 +31,6 @@ Number of observations & 52 & 22 & 74 \\ \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{4}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) onerow savetex("run/iebaltab/outputs/iebaltab2/2g-onerow.tex") replace] } +\multicolumn{4}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) onerow savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-onerow.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g-pair.tex b/run/iebaltab/outputs/iebaltab2/2g-pair.tex index 86fadd8a..ec09a1d8 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-pair.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-pair.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) stats(pair(p)) savetex("run/iebaltab/outputs/iebaltab2/2g-pair.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) stats(pair(p)) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-pair.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.047) & & (0.063) & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) stats(pair(p)) savetex("run/iebaltab/outputs/iebaltab2/2g-pair.tex") replace] } +\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) stats(pair(p)) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-pair.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g-stars.tex b/run/iebaltab/outputs/iebaltab2/2g-stars.tex index 1cc5768c..e08e2c42 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-stars.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-stars.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) starlevels(.05 .01 .001) savetex("run/iebaltab/outputs/iebaltab2/2g-stars.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) starlevels(.05 .01 .001) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-stars.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.047) & & (0.063) & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.001, **=.01, *=.05. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) starlevels(.05 .01 .001) savetex("run/iebaltab/outputs/iebaltab2/2g-stars.tex") replace] } +\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.001, **=.01, *=.05. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) starlevels(.05 .01 .001) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-stars.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g-total.tex b/run/iebaltab/outputs/iebaltab2/2g-total.tex index 89a5442b..a470aac5 100644 --- a/run/iebaltab/outputs/iebaltab2/2g-total.tex +++ b/run/iebaltab/outputs/iebaltab2/2g-total.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) total savetex("run/iebaltab/outputs/iebaltab2/2g-total.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) total savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-total.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.053) & & (0.047) & & (0.063) & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{8}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) total savetex("run/iebaltab/outputs/iebaltab2/2g-total.tex") replace] } +\multicolumn{8}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) total savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-total.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/2g.tex b/run/iebaltab/outputs/iebaltab2/2g.tex index c6bbd41a..56230af8 100644 --- a/run/iebaltab/outputs/iebaltab2/2g.tex +++ b/run/iebaltab/outputs/iebaltab2/2g.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) savexlsx("run/iebaltab/outputs/iebaltab2/2g.xlsx") savecsv("run/iebaltab/outputs/iebaltab2/2g-control.csv") savetex("run/iebaltab/outputs/iebaltab2/2g.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(foreign) savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g.xlsx") savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-control.csv") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.047) & & (0.063) & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) savexlsx("run/iebaltab/outputs/iebaltab2/2g.xlsx") savecsv("run/iebaltab/outputs/iebaltab2/2g-control.csv") savetex("run/iebaltab/outputs/iebaltab2/2g.tex") replace] } +\multicolumn{6}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(foreign) savexlsx("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g.xlsx") savecsv("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g-control.csv") savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/2g.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/3g-control-order.tex b/run/iebaltab/outputs/iebaltab2/3g-control-order.tex index 7db2e5a8..6d5a62ef 100644 --- a/run/iebaltab/outputs/iebaltab2/3g-control-order.tex +++ b/run/iebaltab/outputs/iebaltab2/3g-control-order.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) control(0) order(2 1) savetex("run/iebaltab/outputs/iebaltab2/3g-control-order.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) control(0) order(2 1) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g-control-order.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.097) & & (0.091) & & (0.089) & & & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{9}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) control(0) order(2 1) savetex("run/iebaltab/outputs/iebaltab2/3g-control-order.tex") replace] } +\multicolumn{9}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) control(0) order(2 1) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g-control-order.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/3g-control.tex b/run/iebaltab/outputs/iebaltab2/3g-control.tex index 2d9686d5..43849f33 100644 --- a/run/iebaltab/outputs/iebaltab2/3g-control.tex +++ b/run/iebaltab/outputs/iebaltab2/3g-control.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) control(0) savetex("run/iebaltab/outputs/iebaltab2/3g-control.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) control(0) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g-control.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.089) & & (0.091) & & (0.097) & & & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{9}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) control(0) savetex("run/iebaltab/outputs/iebaltab2/3g-control.tex") replace] } +\multicolumn{9}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) control(0) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g-control.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/3g-cov.tex b/run/iebaltab/outputs/iebaltab2/3g-cov.tex index 35b0a0bc..98777b35 100644 --- a/run/iebaltab/outputs/iebaltab2/3g-cov.tex +++ b/run/iebaltab/outputs/iebaltab2/3g-cov.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) covariates(foreign) stats(pair(p)) savetex("run/iebaltab/outputs/iebaltab2/3g-cov.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) covariates(foreign) stats(pair(p)) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g-cov.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.089) & & (0.091) & & (0.097) & & & & & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{10}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) covariates(foreign) stats(pair(p)) savetex("run/iebaltab/outputs/iebaltab2/3g-cov.tex") replace] } +\multicolumn{10}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Covariate(s) used in pairwise regressions: [foreign]. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) covariates(foreign) stats(pair(p)) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g-cov.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/3g-order.tex b/run/iebaltab/outputs/iebaltab2/3g-order.tex index 91854103..ae890c0d 100644 --- a/run/iebaltab/outputs/iebaltab2/3g-order.tex +++ b/run/iebaltab/outputs/iebaltab2/3g-order.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) order(2) savetex("run/iebaltab/outputs/iebaltab2/3g-order.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) order(2) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g-order.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.097) & & (0.089) & & (0.091) & & & & & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{10}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) order(2) savetex("run/iebaltab/outputs/iebaltab2/3g-order.tex") replace] } +\multicolumn{10}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) order(2) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g-order.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/3g-total.tex b/run/iebaltab/outputs/iebaltab2/3g-total.tex index cdca33f3..9a1f33c1 100644 --- a/run/iebaltab/outputs/iebaltab2/3g-total.tex +++ b/run/iebaltab/outputs/iebaltab2/3g-total.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) total savetex("run/iebaltab/outputs/iebaltab2/3g-total.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) total savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g-total.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccccccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.053) & & (0.089) & & (0.091) & & (0.097) & & & & & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{12}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) total savetex("run/iebaltab/outputs/iebaltab2/3g-total.tex") replace] } +\multicolumn{12}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) total savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g-total.tex") replace] } \end{tabular} diff --git a/run/iebaltab/outputs/iebaltab2/3g.tex b/run/iebaltab/outputs/iebaltab2/3g.tex index 61b93303..2bf00f64 100644 --- a/run/iebaltab/outputs/iebaltab2/3g.tex +++ b/run/iebaltab/outputs/iebaltab2/3g.tex @@ -2,7 +2,7 @@ %%% (https://github.com/worldbank/ietoolkit) %%% (https://dimewiki.worldbank.org/iebaltab) %%% The command was specified exactly like this: -%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) savetex("run/iebaltab/outputs/iebaltab2/3g.tex") replace +%%% iebaltab price mpg trunk headroom weight length turn displacement gear_ratio, grpvar(tmt) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g.tex") replace \begin{tabular}{@{\extracolsep{5pt}}lcccccccccccc} \\[-1.8ex]\hline \hline \\[-1.8ex] @@ -29,6 +29,6 @@ & & (0.089) & & (0.091) & & (0.097) & & & & & & \\ [1ex] \hline \hline \\[-1.8ex] %%% This is the note. If it does not have the correct margins, use texnotewidth() option or change the number before '\textwidth' in line below to fit it to table size. -\multicolumn{10}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) savetex("run/iebaltab/outputs/iebaltab2/3g.tex") replace] } +\multicolumn{10}{@{} p{\textwidth}}{If the table includes missing values (.n, .o, .v etc.) see the Missing values section in the help file for the Stata command iebaltab for definitions of these values. Significance: ***=.01, **=.05, *=.1. Full user input as written by user: [iebaltab price mpg trunk headroom weight length turn displacement gear\_ratio, grpvar(tmt) savetex("C:/Users/wb462869/github/ietoolkit/run/iebaltab/outputs/iebaltab2/3g.tex") replace] } \end{tabular} diff --git a/run/ieboilstart/ieboilstart.do b/run/ieboilstart/ieboilstart.do index f79967b5..a370f3ff 100644 --- a/run/ieboilstart/ieboilstart.do +++ b/run/ieboilstart/ieboilstart.do @@ -1,41 +1,36 @@ - * Load the command from file and utils - qui do "src/ado_files/ieboilstart.ado" - qui do "src/ado_files/ietoolkit.ado" + ************************ + * Set up root paths if not already set, and set up dev environment - local out "run/ieboilstart/outputs" + reproot, project("ietoolkit") roots("clone") prefix("ietk_") + global runfldr "${ietk_clone}/run" + global srcfldr "${ietk_clone}/src" + * Install the version of this package in + * the plus-ado folder in the test folder + cap mkdir "${runfldr}/dev-env" + repado using "${runfldr}/dev-env" - * Testing old "default" syntax - cap ieboilstart , version(13.1) adopath("`out'/ado1") - assert _rc == 198 + cap net uninstall ietoolkit + net install ietoolkit, from("${ietk_clone}/src") replace - * Load the command from file and utils - qui do "src/ado_files/ieboilstart.ado" - qui do "src/ado_files/ietoolkit.ado" + * Set version to target version of ietoolkit + ieboilstart , version(13.1) + `r(version)' - * Set PERSONAL path - ieboilstart , version(13.1) adopath("`out'/ado1", nostrict) - `r(version)' - - *Test mock command in this ado path - ado1 + * Load utils commands + qui do "${runfldr}/run_utils.do" - * NOTE THAT THIS LINE WILL CAUSE AN ERROR IF THIS RUN FILE IS RAN TWICE - * WITHOUT RESTARTING STATA INBETWEEN - iefieldkit + ************************ + * Run tests - * Reload commands - qui do "src/ado_files/ieboilstart.ado" - qui do "src/ado_files/ietoolkit.ado" + local out "${runfldr}/ieboilstart/ado-test" + ie_recurse_rmdir, folder("`out'") okifnotexist + ie_recurse_mkdir, folder("`out'") - * Set PLUS path - ieboilstart , version(13.1) adopath("`out'/ado2", strict) + * Make sure deprecated but still supported option work + ieboilstart , version(13.1) adopath("`out'", strict) `r(version)' - *Test mock command in this ado path - ado2 - - * Test that otherwise instaleld commands are not accessible after "strict" - cap iefieldkit - assert _rc == 199 + // make sure repkit is installed in this folder such that other files can use repado to reset this change + ssc install repkit, replace diff --git a/run/ieboilstart/outputs/ado1/ado1.ado b/run/ieboilstart/outputs/ado1/ado1.ado deleted file mode 100644 index d1dfa5b6..00000000 --- a/run/ieboilstart/outputs/ado1/ado1.ado +++ /dev/null @@ -1,4 +0,0 @@ -capture program drop ado1 - program ado1 , rclass - noi di "Ado1 ran successfully" -end diff --git a/run/ieboilstart/outputs/ado2/ado2.ado b/run/ieboilstart/outputs/ado2/ado2.ado deleted file mode 100644 index 8c928b05..00000000 --- a/run/ieboilstart/outputs/ado2/ado2.ado +++ /dev/null @@ -1,4 +0,0 @@ -capture program drop ado2 - program ado2 , rclass - noi di "Ado2 ran successfully" -end diff --git a/run/ieddtab/ieddtab.do b/run/ieddtab/ieddtab.do index ce3cd9d7..f6cd3b1b 100644 --- a/run/ieddtab/ieddtab.do +++ b/run/ieddtab/ieddtab.do @@ -1,16 +1,26 @@ -/******************************************************************************* - Set up -*******************************************************************************/ + ************************ + * Set up root paths if not already set, and set up dev environment - * Set versson and seed - ieboilstart , version(13.1) - `r(version)' - set seed 313833 + reproot, project("ietoolkit") roots("clone") prefix("ietk_") + global runfldr "${ietk_clone}/run" + global srcfldr "${ietk_clone}/src" + * Install the version of this package in + * the plus-ado folder in the test folder + cap mkdir "${runfldr}/dev-env" + repado using "${runfldr}/dev-env" + + cap net uninstall ietoolkit + net install ietoolkit, from("${ietk_clone}/src") replace + + * Set version to target version of ietoolkit + ieboilstart , version(13.1) + `r(version)' + + ************************ + * Run tests - * Add the path to your local clone of the [ietoolkit] repo - qui do "src/ado_files/ieddtab.ado" * Load data blood pressure patient data sysuse bplong, clear diff --git a/run/iedorep.do b/run/iedorep.do deleted file mode 100644 index 4038aabe..00000000 --- a/run/iedorep.do +++ /dev/null @@ -1,15 +0,0 @@ -// - -global ietoolkit "/Users/bbdaniels/GitHub/ietoolkit" - -do "${ietoolkit}/src/ado_files/iedorep.ado" - -iedorep "${ietoolkit}/run/iedorep/iedorep-target-1.do" /// - , debug qui /// - alldata allsort allseed recursive - -iedorep "${ietoolkit}/run/iedorep/iedorep-target-clear.do" /// - , debug qui /// - alldata allsort allseed recursive - -// diff --git a/run/iedorep/iedorep-target-1.do b/run/iedorep/iedorep-target-1.do deleted file mode 100644 index 3f77b677..00000000 --- a/run/iedorep/iedorep-target-1.do +++ /dev/null @@ -1,34 +0,0 @@ -// - -clear - -sysuse auto.dta - -local MYFAKELOCAL = `MYFAKELOCAL' + 1 - -#d cr - -// TEST COMMENT - -global do "nothing" - -expand 2 , gen(check) - -isid make check, sort - -sort foreign - -di as err "RUNFILE: THIS VALUE SHOULD ALWAYS BE THE NUMBER ONE: `MYFAKELOCAL'" - -gen x = _n -gen y = rnormal() - -set seed 123455 - -duplicates drop make , force - - -do "${ietoolkit}/run/iedorep/iedorep-target-2.do" - - -// diff --git a/run/iedorep/iedorep-target-1_temp.do b/run/iedorep/iedorep-target-1_temp.do deleted file mode 100644 index 6a0fa41d..00000000 --- a/run/iedorep/iedorep-target-1_temp.do +++ /dev/null @@ -1,1492 +0,0 @@ - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap postutil clear - cap _return drop _all - cap discard - cap timer clear - cap putdocx clear - cap putpdf clear - cap mata: mata clear - cap python clear - cap java clear -tempname theSORT theRNG allRNGS whichRNG theDATA -tempfile posty allDATA -postfile posty Line str15(Data Err_1 Seed Err_2 Sort Err_3) str2000(Path) using `posty' , replace -local `theRNG' = "`c(rngstate)'" -local `theSORT' = "`c(sortrngstate)'" -datasignature -local `theDATA' = "`r(datasignature)'" -// -if ("`c(rngstate)'" != "``theRNG''") { -post posty (1) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (1) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 1_x -save `1_x' , emptyok -local theLOCALS "`theLOCALS' 1_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (1) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 1" -local 1 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (2) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (2) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 2_x -save `2_x' , emptyok -local theLOCALS "`theLOCALS' 2_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (2) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 2" -local 2 = "`r(datasignature)'" -} -clear -if ("`c(rngstate)'" != "``theRNG''") { -post posty (3) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (3) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 3_x -save `3_x' , emptyok -local theLOCALS "`theLOCALS' 3_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (3) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 3" -local 3 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (4) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (4) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 4_x -save `4_x' , emptyok -local theLOCALS "`theLOCALS' 4_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (4) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 4" -local 4 = "`r(datasignature)'" -} -sysuse auto.dta -if ("`c(rngstate)'" != "``theRNG''") { -post posty (5) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (5) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 5_x -save `5_x' , emptyok -local theLOCALS "`theLOCALS' 5_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (5) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 5" -local 5 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (6) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (6) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 6_x -save `6_x' , emptyok -local theLOCALS "`theLOCALS' 6_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (6) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 6" -local 6 = "`r(datasignature)'" -} -local MYFAKELOCAL = `MYFAKELOCAL' + 1 -if ("`c(rngstate)'" != "``theRNG''") { -post posty (7) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (7) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 7_x -save `7_x' , emptyok -local theLOCALS "`theLOCALS' 7_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (7) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 7" -local 7 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (8) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (8) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 8_x -save `8_x' , emptyok -local theLOCALS "`theLOCALS' 8_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (8) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 8" -local 8 = "`r(datasignature)'" -} -#d cr -if ("`c(rngstate)'" != "``theRNG''") { -post posty (9) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (9) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 9_x -save `9_x' , emptyok -local theLOCALS "`theLOCALS' 9_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (9) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 9" -local 9 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (10) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (10) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 10_x -save `10_x' , emptyok -local theLOCALS "`theLOCALS' 10_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (10) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 10" -local 10 = "`r(datasignature)'" -} -// TEST COMMENT -if ("`c(rngstate)'" != "``theRNG''") { -post posty (11) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (11) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 11_x -save `11_x' , emptyok -local theLOCALS "`theLOCALS' 11_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (11) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 11" -local 11 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (12) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (12) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 12_x -save `12_x' , emptyok -local theLOCALS "`theLOCALS' 12_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (12) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 12" -local 12 = "`r(datasignature)'" -} -global do "nothing" - post posty (13) ("") ("") ("") ("") ("") ("") (`""nothing""') -if ("`c(rngstate)'" != "``theRNG''") { -post posty (13) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (13) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 13_x -save `13_x' , emptyok -local theLOCALS "`theLOCALS' 13_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (13) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 13" -local 13 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (14) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (14) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 14_x -save `14_x' , emptyok -local theLOCALS "`theLOCALS' 14_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (14) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 14" -local 14 = "`r(datasignature)'" -} -expand 2 , gen(check) -if ("`c(rngstate)'" != "``theRNG''") { -post posty (15) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (15) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 15_x -save `15_x' , emptyok -local theLOCALS "`theLOCALS' 15_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (15) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 15" -local 15 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (16) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (16) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 16_x -save `16_x' , emptyok -local theLOCALS "`theLOCALS' 16_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (16) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 16" -local 16 = "`r(datasignature)'" -} -isid make check, sort -if ("`c(rngstate)'" != "``theRNG''") { -post posty (17) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (17) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 17_x -save `17_x' , emptyok -local theLOCALS "`theLOCALS' 17_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (17) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 17" -local 17 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (18) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (18) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 18_x -save `18_x' , emptyok -local theLOCALS "`theLOCALS' 18_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (18) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 18" -local 18 = "`r(datasignature)'" -} -sort foreign -if ("`c(rngstate)'" != "``theRNG''") { -post posty (19) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (19) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 19_x -save `19_x' , emptyok -local theLOCALS "`theLOCALS' 19_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (19) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 19" -local 19 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (20) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (20) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 20_x -save `20_x' , emptyok -local theLOCALS "`theLOCALS' 20_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (20) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 20" -local 20 = "`r(datasignature)'" -} -di as err "RUNFILE: THIS VALUE SHOULD ALWAYS BE THE NUMBER ONE: `MYFAKELOCAL'" -if ("`c(rngstate)'" != "``theRNG''") { -post posty (21) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (21) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 21_x -save `21_x' , emptyok -local theLOCALS "`theLOCALS' 21_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (21) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 21" -local 21 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (22) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (22) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 22_x -save `22_x' , emptyok -local theLOCALS "`theLOCALS' 22_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (22) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 22" -local 22 = "`r(datasignature)'" -} -gen x = _n -if ("`c(rngstate)'" != "``theRNG''") { -post posty (23) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (23) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 23_x -save `23_x' , emptyok -local theLOCALS "`theLOCALS' 23_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (23) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 23" -local 23 = "`r(datasignature)'" -} -gen y = rnormal() -if ("`c(rngstate)'" != "``theRNG''") { -post posty (24) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (24) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 24_x -save `24_x' , emptyok -local theLOCALS "`theLOCALS' 24_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (24) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 24" -local 24 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (25) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (25) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 25_x -save `25_x' , emptyok -local theLOCALS "`theLOCALS' 25_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (25) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 25" -local 25 = "`r(datasignature)'" -} -set seed 123455 -if ("`c(rngstate)'" != "``theRNG''") { -post posty (26) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (26) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 26_x -save `26_x' , emptyok -local theLOCALS "`theLOCALS' 26_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (26) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 26" -local 26 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (27) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (27) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 27_x -save `27_x' , emptyok -local theLOCALS "`theLOCALS' 27_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (27) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 27" -local 27 = "`r(datasignature)'" -} -duplicates drop make , force -if ("`c(rngstate)'" != "``theRNG''") { -post posty (28) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (28) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 28_x -save `28_x' , emptyok -local theLOCALS "`theLOCALS' 28_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (28) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 28" -local 28 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (29) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (29) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 29_x -save `29_x' , emptyok -local theLOCALS "`theLOCALS' 29_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (29) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 29" -local 29 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (30) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (30) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 30_x -save `30_x' , emptyok -local theLOCALS "`theLOCALS' 30_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (30) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 30" -local 30 = "`r(datasignature)'" -} -do "${ietoolkit}/run/iedorep/iedorep-target-2.do" - post posty (31) ("") ("") ("") ("") ("") ("") (`""/Users/bbdaniels/GitHub/ietoolkit/run/iedorep/iedorep-target-2.do""') -if ("`c(rngstate)'" != "``theRNG''") { -post posty (31) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (31) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 31_x -save `31_x' , emptyok -local theLOCALS "`theLOCALS' 31_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (31) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 31" -local 31 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (32) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (32) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 32_x -save `32_x' , emptyok -local theLOCALS "`theLOCALS' 32_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (32) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 32" -local 32 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (33) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (33) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 33_x -save `33_x' , emptyok -local theLOCALS "`theLOCALS' 33_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (33) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 33" -local 33 = "`r(datasignature)'" -} -// -if ("`c(rngstate)'" != "``theRNG''") { -post posty (34) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (34) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 34_x -save `34_x' , emptyok -local theLOCALS "`theLOCALS' 34_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (34) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 34" -local 34 = "`r(datasignature)'" -} - -// CLEANUP LOCALS BETWEEN FILES ------------------------------------------- -local theLOCALS posty theSORT theRNG allRNGS whichRNG allDATA theDATA theLOCALS `posty' `theSORT' `theRNG' `allRNGS' `whichRNG' `allDATA' `theDATA' `theLOCALS' -mata : st_local("all_locals", invtokens(st_dir("local", "macro", "*")')) -local toDROP : list all_locals - theLOCALS -cap macro drop `toDROP' -foreach macro in `toDROP' { - mata : st_local("`macro'","") -} -// ADVANCE RNG AND CLEAR DATA ------------------------------------------- -qui di `=rnormal()' - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap _return drop _all - cap mata: mata clear - cap timer clear - cap putdocx clear - cap putpdf clear - cap python clear - cap java clear -// SECOND RUN STARTS HERE ------------------------------------------------ - -local `theRNG' = "`c(rngstate)'" -local `theSORT' = "`c(sortrngstate)'" -datasignature -local `theDATA' = "`r(datasignature)'" -// -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (1) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `1_x' -if _rc != 0 { -post posty (1) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`1'") { -post posty (1) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (2) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `2_x' -if _rc != 0 { -post posty (2) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`2'") { -post posty (2) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -clear -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (3) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `3_x' -if _rc != 0 { -post posty (3) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`3'") { -post posty (3) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (4) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `4_x' -if _rc != 0 { -post posty (4) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`4'") { -post posty (4) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -sysuse auto.dta -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (5) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `5_x' -if _rc != 0 { -post posty (5) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`5'") { -post posty (5) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (6) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `6_x' -if _rc != 0 { -post posty (6) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`6'") { -post posty (6) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -local MYFAKELOCAL = `MYFAKELOCAL' + 1 -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (7) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `7_x' -if _rc != 0 { -post posty (7) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`7'") { -post posty (7) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (8) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `8_x' -if _rc != 0 { -post posty (8) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`8'") { -post posty (8) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -#d cr -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (9) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `9_x' -if _rc != 0 { -post posty (9) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`9'") { -post posty (9) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (10) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `10_x' -if _rc != 0 { -post posty (10) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`10'") { -post posty (10) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -// TEST COMMENT -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (11) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `11_x' -if _rc != 0 { -post posty (11) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`11'") { -post posty (11) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (12) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `12_x' -if _rc != 0 { -post posty (12) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`12'") { -post posty (12) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -global do "nothing" -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (13) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `13_x' -if _rc != 0 { -post posty (13) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`13'") { -post posty (13) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (14) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `14_x' -if _rc != 0 { -post posty (14) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`14'") { -post posty (14) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -expand 2 , gen(check) -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (15) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `15_x' -if _rc != 0 { -post posty (15) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`15'") { -post posty (15) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (16) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `16_x' -if _rc != 0 { -post posty (16) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`16'") { -post posty (16) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -isid make check, sort -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (17) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `17_x' -if _rc != 0 { -post posty (17) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`17'") { -post posty (17) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (18) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `18_x' -if _rc != 0 { -post posty (18) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`18'") { -post posty (18) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -sort foreign -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (19) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `19_x' -if _rc != 0 { -post posty (19) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`19'") { -post posty (19) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (20) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `20_x' -if _rc != 0 { -post posty (20) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`20'") { -post posty (20) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -di as err "RUNFILE: THIS VALUE SHOULD ALWAYS BE THE NUMBER ONE: `MYFAKELOCAL'" -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (21) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `21_x' -if _rc != 0 { -post posty (21) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`21'") { -post posty (21) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (22) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `22_x' -if _rc != 0 { -post posty (22) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`22'") { -post posty (22) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -gen x = _n -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (23) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `23_x' -if _rc != 0 { -post posty (23) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`23'") { -post posty (23) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -gen y = rnormal() -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (24) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `24_x' -if _rc != 0 { -post posty (24) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`24'") { -post posty (24) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (25) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `25_x' -if _rc != 0 { -post posty (25) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`25'") { -post posty (25) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -set seed 123455 -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (26) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `26_x' -if _rc != 0 { -post posty (26) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`26'") { -post posty (26) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (27) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `27_x' -if _rc != 0 { -post posty (27) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`27'") { -post posty (27) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -duplicates drop make , force -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (28) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `28_x' -if _rc != 0 { -post posty (28) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`28'") { -post posty (28) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (29) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `29_x' -if _rc != 0 { -post posty (29) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`29'") { -post posty (29) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (30) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `30_x' -if _rc != 0 { -post posty (30) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`30'") { -post posty (30) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -do "${ietoolkit}/run/iedorep/iedorep-target-2.do" -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (31) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `31_x' -if _rc != 0 { -post posty (31) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`31'") { -post posty (31) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (32) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `32_x' -if _rc != 0 { -post posty (32) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`32'") { -post posty (32) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (33) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `33_x' -if _rc != 0 { -post posty (33) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`33'") { -post posty (33) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -// -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (34) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `34_x' -if _rc != 0 { -post posty (34) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`34'") { -post posty (34) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -postclose posty -use `posty' , clear -collapse (firstnm) Data Err_1 Seed Err_2 Sort Err_3 Path , by(Line) -compress diff --git a/run/iedorep/iedorep-target-2.do b/run/iedorep/iedorep-target-2.do deleted file mode 100644 index 13d22b37..00000000 --- a/run/iedorep/iedorep-target-2.do +++ /dev/null @@ -1,29 +0,0 @@ -// - -clear - -sysuse auto.dta , clear - -local MYFAKELOCAL = `MYFAKELOCAL' + 1 - -#d cr - -expand 2 , gen(check) - -isid make check, sort - -sort foreign - -di as err "SAME FROM THE SUBROUTINE: `MYFAKELOCAL'" - -gen x = _n -gen y = rnormal() - -set seed 123455 - -duplicates drop make , force - -do "${ietoolkit}/run/iedorep/iedorep-target-3.do" - - -// diff --git a/run/iedorep/iedorep-target-2_temp.do b/run/iedorep/iedorep-target-2_temp.do deleted file mode 100644 index 33099a24..00000000 --- a/run/iedorep/iedorep-target-2_temp.do +++ /dev/null @@ -1,1281 +0,0 @@ - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap postutil clear - cap _return drop _all - cap discard - cap timer clear - cap putdocx clear - cap putpdf clear - cap mata: mata clear - cap python clear - cap java clear -tempname theSORT theRNG allRNGS whichRNG theDATA -tempfile posty allDATA -postfile posty Line str15(Data Err_1 Seed Err_2 Sort Err_3) str2000(Path) using `posty' , replace -local `theRNG' = "`c(rngstate)'" -local `theSORT' = "`c(sortrngstate)'" -datasignature -local `theDATA' = "`r(datasignature)'" -// -if ("`c(rngstate)'" != "``theRNG''") { -post posty (1) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (1) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 1_x -save `1_x' , emptyok -local theLOCALS "`theLOCALS' 1_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (1) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 1" -local 1 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (2) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (2) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 2_x -save `2_x' , emptyok -local theLOCALS "`theLOCALS' 2_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (2) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 2" -local 2 = "`r(datasignature)'" -} -clear -if ("`c(rngstate)'" != "``theRNG''") { -post posty (3) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (3) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 3_x -save `3_x' , emptyok -local theLOCALS "`theLOCALS' 3_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (3) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 3" -local 3 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (4) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (4) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 4_x -save `4_x' , emptyok -local theLOCALS "`theLOCALS' 4_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (4) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 4" -local 4 = "`r(datasignature)'" -} -sysuse auto.dta , clear -if ("`c(rngstate)'" != "``theRNG''") { -post posty (5) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (5) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 5_x -save `5_x' , emptyok -local theLOCALS "`theLOCALS' 5_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (5) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 5" -local 5 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (6) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (6) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 6_x -save `6_x' , emptyok -local theLOCALS "`theLOCALS' 6_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (6) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 6" -local 6 = "`r(datasignature)'" -} -local MYFAKELOCAL = `MYFAKELOCAL' + 1 -if ("`c(rngstate)'" != "``theRNG''") { -post posty (7) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (7) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 7_x -save `7_x' , emptyok -local theLOCALS "`theLOCALS' 7_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (7) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 7" -local 7 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (8) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (8) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 8_x -save `8_x' , emptyok -local theLOCALS "`theLOCALS' 8_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (8) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 8" -local 8 = "`r(datasignature)'" -} -#d cr -if ("`c(rngstate)'" != "``theRNG''") { -post posty (9) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (9) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 9_x -save `9_x' , emptyok -local theLOCALS "`theLOCALS' 9_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (9) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 9" -local 9 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (10) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (10) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 10_x -save `10_x' , emptyok -local theLOCALS "`theLOCALS' 10_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (10) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 10" -local 10 = "`r(datasignature)'" -} -expand 2 , gen(check) -if ("`c(rngstate)'" != "``theRNG''") { -post posty (11) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (11) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 11_x -save `11_x' , emptyok -local theLOCALS "`theLOCALS' 11_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (11) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 11" -local 11 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (12) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (12) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 12_x -save `12_x' , emptyok -local theLOCALS "`theLOCALS' 12_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (12) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 12" -local 12 = "`r(datasignature)'" -} -isid make check, sort -if ("`c(rngstate)'" != "``theRNG''") { -post posty (13) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (13) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 13_x -save `13_x' , emptyok -local theLOCALS "`theLOCALS' 13_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (13) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 13" -local 13 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (14) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (14) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 14_x -save `14_x' , emptyok -local theLOCALS "`theLOCALS' 14_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (14) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 14" -local 14 = "`r(datasignature)'" -} -sort foreign -if ("`c(rngstate)'" != "``theRNG''") { -post posty (15) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (15) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 15_x -save `15_x' , emptyok -local theLOCALS "`theLOCALS' 15_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (15) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 15" -local 15 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (16) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (16) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 16_x -save `16_x' , emptyok -local theLOCALS "`theLOCALS' 16_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (16) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 16" -local 16 = "`r(datasignature)'" -} -di as err "SAME FROM THE SUBROUTINE: `MYFAKELOCAL'" -if ("`c(rngstate)'" != "``theRNG''") { -post posty (17) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (17) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 17_x -save `17_x' , emptyok -local theLOCALS "`theLOCALS' 17_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (17) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 17" -local 17 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (18) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (18) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 18_x -save `18_x' , emptyok -local theLOCALS "`theLOCALS' 18_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (18) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 18" -local 18 = "`r(datasignature)'" -} -gen x = _n -if ("`c(rngstate)'" != "``theRNG''") { -post posty (19) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (19) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 19_x -save `19_x' , emptyok -local theLOCALS "`theLOCALS' 19_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (19) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 19" -local 19 = "`r(datasignature)'" -} -gen y = rnormal() -if ("`c(rngstate)'" != "``theRNG''") { -post posty (20) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (20) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 20_x -save `20_x' , emptyok -local theLOCALS "`theLOCALS' 20_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (20) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 20" -local 20 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (21) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (21) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 21_x -save `21_x' , emptyok -local theLOCALS "`theLOCALS' 21_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (21) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 21" -local 21 = "`r(datasignature)'" -} -set seed 123455 -if ("`c(rngstate)'" != "``theRNG''") { -post posty (22) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (22) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 22_x -save `22_x' , emptyok -local theLOCALS "`theLOCALS' 22_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (22) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 22" -local 22 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (23) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (23) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 23_x -save `23_x' , emptyok -local theLOCALS "`theLOCALS' 23_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (23) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 23" -local 23 = "`r(datasignature)'" -} -duplicates drop make , force -if ("`c(rngstate)'" != "``theRNG''") { -post posty (24) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (24) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 24_x -save `24_x' , emptyok -local theLOCALS "`theLOCALS' 24_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (24) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 24" -local 24 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (25) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (25) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 25_x -save `25_x' , emptyok -local theLOCALS "`theLOCALS' 25_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (25) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 25" -local 25 = "`r(datasignature)'" -} -do "${ietoolkit}/run/iedorep/iedorep-target-3.do" - post posty (26) ("") ("") ("") ("") ("") ("") (`""/Users/bbdaniels/GitHub/ietoolkit/run/iedorep/iedorep-target-3.do""') -if ("`c(rngstate)'" != "``theRNG''") { -post posty (26) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (26) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 26_x -save `26_x' , emptyok -local theLOCALS "`theLOCALS' 26_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (26) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 26" -local 26 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (27) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (27) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 27_x -save `27_x' , emptyok -local theLOCALS "`theLOCALS' 27_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (27) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 27" -local 27 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (28) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (28) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 28_x -save `28_x' , emptyok -local theLOCALS "`theLOCALS' 28_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (28) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 28" -local 28 = "`r(datasignature)'" -} -// -if ("`c(rngstate)'" != "``theRNG''") { -post posty (29) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (29) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 29_x -save `29_x' , emptyok -local theLOCALS "`theLOCALS' 29_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (29) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 29" -local 29 = "`r(datasignature)'" -} - -// CLEANUP LOCALS BETWEEN FILES ------------------------------------------- -local theLOCALS posty theSORT theRNG allRNGS whichRNG allDATA theDATA theLOCALS `posty' `theSORT' `theRNG' `allRNGS' `whichRNG' `allDATA' `theDATA' `theLOCALS' -mata : st_local("all_locals", invtokens(st_dir("local", "macro", "*")')) -local toDROP : list all_locals - theLOCALS -cap macro drop `toDROP' -foreach macro in `toDROP' { - mata : st_local("`macro'","") -} -// ADVANCE RNG AND CLEAR DATA ------------------------------------------- -qui di `=rnormal()' - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap _return drop _all - cap mata: mata clear - cap timer clear - cap putdocx clear - cap putpdf clear - cap python clear - cap java clear -// SECOND RUN STARTS HERE ------------------------------------------------ - -local `theRNG' = "`c(rngstate)'" -local `theSORT' = "`c(sortrngstate)'" -datasignature -local `theDATA' = "`r(datasignature)'" -// -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (1) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `1_x' -if _rc != 0 { -post posty (1) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`1'") { -post posty (1) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (2) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `2_x' -if _rc != 0 { -post posty (2) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`2'") { -post posty (2) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -clear -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (3) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `3_x' -if _rc != 0 { -post posty (3) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`3'") { -post posty (3) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (4) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `4_x' -if _rc != 0 { -post posty (4) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`4'") { -post posty (4) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -sysuse auto.dta , clear -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (5) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `5_x' -if _rc != 0 { -post posty (5) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`5'") { -post posty (5) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (6) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `6_x' -if _rc != 0 { -post posty (6) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`6'") { -post posty (6) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -local MYFAKELOCAL = `MYFAKELOCAL' + 1 -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (7) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `7_x' -if _rc != 0 { -post posty (7) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`7'") { -post posty (7) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (8) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `8_x' -if _rc != 0 { -post posty (8) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`8'") { -post posty (8) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -#d cr -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (9) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `9_x' -if _rc != 0 { -post posty (9) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`9'") { -post posty (9) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (10) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `10_x' -if _rc != 0 { -post posty (10) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`10'") { -post posty (10) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -expand 2 , gen(check) -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (11) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `11_x' -if _rc != 0 { -post posty (11) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`11'") { -post posty (11) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (12) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `12_x' -if _rc != 0 { -post posty (12) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`12'") { -post posty (12) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -isid make check, sort -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (13) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `13_x' -if _rc != 0 { -post posty (13) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`13'") { -post posty (13) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (14) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `14_x' -if _rc != 0 { -post posty (14) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`14'") { -post posty (14) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -sort foreign -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (15) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `15_x' -if _rc != 0 { -post posty (15) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`15'") { -post posty (15) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (16) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `16_x' -if _rc != 0 { -post posty (16) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`16'") { -post posty (16) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -di as err "SAME FROM THE SUBROUTINE: `MYFAKELOCAL'" -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (17) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `17_x' -if _rc != 0 { -post posty (17) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`17'") { -post posty (17) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (18) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `18_x' -if _rc != 0 { -post posty (18) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`18'") { -post posty (18) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -gen x = _n -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (19) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `19_x' -if _rc != 0 { -post posty (19) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`19'") { -post posty (19) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -gen y = rnormal() -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (20) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `20_x' -if _rc != 0 { -post posty (20) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`20'") { -post posty (20) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (21) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `21_x' -if _rc != 0 { -post posty (21) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`21'") { -post posty (21) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -set seed 123455 -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (22) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `22_x' -if _rc != 0 { -post posty (22) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`22'") { -post posty (22) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (23) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `23_x' -if _rc != 0 { -post posty (23) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`23'") { -post posty (23) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -duplicates drop make , force -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (24) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `24_x' -if _rc != 0 { -post posty (24) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`24'") { -post posty (24) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (25) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `25_x' -if _rc != 0 { -post posty (25) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`25'") { -post posty (25) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -do "${ietoolkit}/run/iedorep/iedorep-target-3.do" -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (26) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `26_x' -if _rc != 0 { -post posty (26) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`26'") { -post posty (26) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (27) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `27_x' -if _rc != 0 { -post posty (27) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`27'") { -post posty (27) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (28) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `28_x' -if _rc != 0 { -post posty (28) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`28'") { -post posty (28) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -// -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (29) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `29_x' -if _rc != 0 { -post posty (29) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`29'") { -post posty (29) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -postclose posty -use `posty' , clear -collapse (firstnm) Data Err_1 Seed Err_2 Sort Err_3 Path , by(Line) -compress diff --git a/run/iedorep/iedorep-target-3.do b/run/iedorep/iedorep-target-3.do deleted file mode 100644 index 70b4e9e9..00000000 --- a/run/iedorep/iedorep-target-3.do +++ /dev/null @@ -1,27 +0,0 @@ -// - -clear - -sysuse auto.dta , clear - -local MYFAKELOCAL = `MYFAKELOCAL' + 1 - -#d cr - -expand 2 , gen(check) - -isid make check, sort - -sort foreign - -di as err "SAME FROM THE SUBROUTINE: `MYFAKELOCAL'" - -gen x = _n -gen y = rnormal() - -set seed 123455 - -duplicates drop make , force - - -// diff --git a/run/iedorep/iedorep-target-3_temp.do b/run/iedorep/iedorep-target-3_temp.do deleted file mode 100644 index 2dc917e1..00000000 --- a/run/iedorep/iedorep-target-3_temp.do +++ /dev/null @@ -1,1196 +0,0 @@ - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap postutil clear - cap _return drop _all - cap discard - cap timer clear - cap putdocx clear - cap putpdf clear - cap mata: mata clear - cap python clear - cap java clear -tempname theSORT theRNG allRNGS whichRNG theDATA -tempfile posty allDATA -postfile posty Line str15(Data Err_1 Seed Err_2 Sort Err_3) str2000(Path) using `posty' , replace -local `theRNG' = "`c(rngstate)'" -local `theSORT' = "`c(sortrngstate)'" -datasignature -local `theDATA' = "`r(datasignature)'" -// -if ("`c(rngstate)'" != "``theRNG''") { -post posty (1) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (1) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 1_x -save `1_x' , emptyok -local theLOCALS "`theLOCALS' 1_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (1) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 1" -local 1 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (2) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (2) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 2_x -save `2_x' , emptyok -local theLOCALS "`theLOCALS' 2_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (2) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 2" -local 2 = "`r(datasignature)'" -} -clear -if ("`c(rngstate)'" != "``theRNG''") { -post posty (3) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (3) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 3_x -save `3_x' , emptyok -local theLOCALS "`theLOCALS' 3_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (3) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 3" -local 3 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (4) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (4) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 4_x -save `4_x' , emptyok -local theLOCALS "`theLOCALS' 4_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (4) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 4" -local 4 = "`r(datasignature)'" -} -sysuse auto.dta , clear -if ("`c(rngstate)'" != "``theRNG''") { -post posty (5) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (5) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 5_x -save `5_x' , emptyok -local theLOCALS "`theLOCALS' 5_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (5) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 5" -local 5 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (6) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (6) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 6_x -save `6_x' , emptyok -local theLOCALS "`theLOCALS' 6_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (6) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 6" -local 6 = "`r(datasignature)'" -} -local MYFAKELOCAL = `MYFAKELOCAL' + 1 -if ("`c(rngstate)'" != "``theRNG''") { -post posty (7) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (7) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 7_x -save `7_x' , emptyok -local theLOCALS "`theLOCALS' 7_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (7) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 7" -local 7 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (8) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (8) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 8_x -save `8_x' , emptyok -local theLOCALS "`theLOCALS' 8_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (8) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 8" -local 8 = "`r(datasignature)'" -} -#d cr -if ("`c(rngstate)'" != "``theRNG''") { -post posty (9) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (9) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 9_x -save `9_x' , emptyok -local theLOCALS "`theLOCALS' 9_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (9) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 9" -local 9 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (10) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (10) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 10_x -save `10_x' , emptyok -local theLOCALS "`theLOCALS' 10_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (10) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 10" -local 10 = "`r(datasignature)'" -} -expand 2 , gen(check) -if ("`c(rngstate)'" != "``theRNG''") { -post posty (11) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (11) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 11_x -save `11_x' , emptyok -local theLOCALS "`theLOCALS' 11_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (11) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 11" -local 11 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (12) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (12) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 12_x -save `12_x' , emptyok -local theLOCALS "`theLOCALS' 12_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (12) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 12" -local 12 = "`r(datasignature)'" -} -isid make check, sort -if ("`c(rngstate)'" != "``theRNG''") { -post posty (13) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (13) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 13_x -save `13_x' , emptyok -local theLOCALS "`theLOCALS' 13_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (13) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 13" -local 13 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (14) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (14) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 14_x -save `14_x' , emptyok -local theLOCALS "`theLOCALS' 14_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (14) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 14" -local 14 = "`r(datasignature)'" -} -sort foreign -if ("`c(rngstate)'" != "``theRNG''") { -post posty (15) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (15) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 15_x -save `15_x' , emptyok -local theLOCALS "`theLOCALS' 15_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (15) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 15" -local 15 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (16) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (16) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 16_x -save `16_x' , emptyok -local theLOCALS "`theLOCALS' 16_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (16) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 16" -local 16 = "`r(datasignature)'" -} -di as err "SAME FROM THE SUBROUTINE: `MYFAKELOCAL'" -if ("`c(rngstate)'" != "``theRNG''") { -post posty (17) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (17) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 17_x -save `17_x' , emptyok -local theLOCALS "`theLOCALS' 17_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (17) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 17" -local 17 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (18) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (18) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 18_x -save `18_x' , emptyok -local theLOCALS "`theLOCALS' 18_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (18) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 18" -local 18 = "`r(datasignature)'" -} -gen x = _n -if ("`c(rngstate)'" != "``theRNG''") { -post posty (19) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (19) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 19_x -save `19_x' , emptyok -local theLOCALS "`theLOCALS' 19_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (19) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 19" -local 19 = "`r(datasignature)'" -} -gen y = rnormal() -if ("`c(rngstate)'" != "``theRNG''") { -post posty (20) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (20) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 20_x -save `20_x' , emptyok -local theLOCALS "`theLOCALS' 20_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (20) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 20" -local 20 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (21) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (21) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 21_x -save `21_x' , emptyok -local theLOCALS "`theLOCALS' 21_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (21) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 21" -local 21 = "`r(datasignature)'" -} -set seed 123455 -if ("`c(rngstate)'" != "``theRNG''") { -post posty (22) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (22) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 22_x -save `22_x' , emptyok -local theLOCALS "`theLOCALS' 22_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (22) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 22" -local 22 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (23) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (23) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 23_x -save `23_x' , emptyok -local theLOCALS "`theLOCALS' 23_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (23) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 23" -local 23 = "`r(datasignature)'" -} -duplicates drop make , force -if ("`c(rngstate)'" != "``theRNG''") { -post posty (24) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (24) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 24_x -save `24_x' , emptyok -local theLOCALS "`theLOCALS' 24_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (24) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 24" -local 24 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (25) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (25) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 25_x -save `25_x' , emptyok -local theLOCALS "`theLOCALS' 25_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (25) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 25" -local 25 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (26) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (26) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 26_x -save `26_x' , emptyok -local theLOCALS "`theLOCALS' 26_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (26) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 26" -local 26 = "`r(datasignature)'" -} -// -if ("`c(rngstate)'" != "``theRNG''") { -post posty (27) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (27) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 27_x -save `27_x' , emptyok -local theLOCALS "`theLOCALS' 27_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (27) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 27" -local 27 = "`r(datasignature)'" -} - -// CLEANUP LOCALS BETWEEN FILES ------------------------------------------- -local theLOCALS posty theSORT theRNG allRNGS whichRNG allDATA theDATA theLOCALS `posty' `theSORT' `theRNG' `allRNGS' `whichRNG' `allDATA' `theDATA' `theLOCALS' -mata : st_local("all_locals", invtokens(st_dir("local", "macro", "*")')) -local toDROP : list all_locals - theLOCALS -cap macro drop `toDROP' -foreach macro in `toDROP' { - mata : st_local("`macro'","") -} -// ADVANCE RNG AND CLEAR DATA ------------------------------------------- -qui di `=rnormal()' - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap _return drop _all - cap mata: mata clear - cap timer clear - cap putdocx clear - cap putpdf clear - cap python clear - cap java clear -// SECOND RUN STARTS HERE ------------------------------------------------ - -local `theRNG' = "`c(rngstate)'" -local `theSORT' = "`c(sortrngstate)'" -datasignature -local `theDATA' = "`r(datasignature)'" -// -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (1) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `1_x' -if _rc != 0 { -post posty (1) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`1'") { -post posty (1) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (2) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `2_x' -if _rc != 0 { -post posty (2) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`2'") { -post posty (2) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -clear -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (3) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `3_x' -if _rc != 0 { -post posty (3) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`3'") { -post posty (3) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (4) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `4_x' -if _rc != 0 { -post posty (4) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`4'") { -post posty (4) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -sysuse auto.dta , clear -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (5) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `5_x' -if _rc != 0 { -post posty (5) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`5'") { -post posty (5) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (6) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `6_x' -if _rc != 0 { -post posty (6) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`6'") { -post posty (6) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -local MYFAKELOCAL = `MYFAKELOCAL' + 1 -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (7) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `7_x' -if _rc != 0 { -post posty (7) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`7'") { -post posty (7) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (8) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `8_x' -if _rc != 0 { -post posty (8) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`8'") { -post posty (8) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -#d cr -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (9) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `9_x' -if _rc != 0 { -post posty (9) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`9'") { -post posty (9) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (10) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `10_x' -if _rc != 0 { -post posty (10) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`10'") { -post posty (10) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -expand 2 , gen(check) -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (11) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `11_x' -if _rc != 0 { -post posty (11) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`11'") { -post posty (11) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (12) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `12_x' -if _rc != 0 { -post posty (12) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`12'") { -post posty (12) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -isid make check, sort -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (13) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `13_x' -if _rc != 0 { -post posty (13) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`13'") { -post posty (13) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (14) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `14_x' -if _rc != 0 { -post posty (14) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`14'") { -post posty (14) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -sort foreign -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (15) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `15_x' -if _rc != 0 { -post posty (15) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`15'") { -post posty (15) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (16) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `16_x' -if _rc != 0 { -post posty (16) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`16'") { -post posty (16) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -di as err "SAME FROM THE SUBROUTINE: `MYFAKELOCAL'" -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (17) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `17_x' -if _rc != 0 { -post posty (17) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`17'") { -post posty (17) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (18) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `18_x' -if _rc != 0 { -post posty (18) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`18'") { -post posty (18) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -gen x = _n -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (19) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `19_x' -if _rc != 0 { -post posty (19) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`19'") { -post posty (19) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -gen y = rnormal() -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (20) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `20_x' -if _rc != 0 { -post posty (20) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`20'") { -post posty (20) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (21) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `21_x' -if _rc != 0 { -post posty (21) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`21'") { -post posty (21) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -set seed 123455 -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (22) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `22_x' -if _rc != 0 { -post posty (22) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`22'") { -post posty (22) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (23) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `23_x' -if _rc != 0 { -post posty (23) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`23'") { -post posty (23) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -duplicates drop make , force -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (24) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `24_x' -if _rc != 0 { -post posty (24) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`24'") { -post posty (24) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (25) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `25_x' -if _rc != 0 { -post posty (25) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`25'") { -post posty (25) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (26) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `26_x' -if _rc != 0 { -post posty (26) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`26'") { -post posty (26) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -// -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (27) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `27_x' -if _rc != 0 { -post posty (27) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`27'") { -post posty (27) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -postclose posty -use `posty' , clear -collapse (firstnm) Data Err_1 Seed Err_2 Sort Err_3 Path , by(Line) -compress diff --git a/run/iedorep/iedorep-target-clear.do b/run/iedorep/iedorep-target-clear.do deleted file mode 100644 index 8586b01d..00000000 --- a/run/iedorep/iedorep-target-clear.do +++ /dev/null @@ -1,12 +0,0 @@ -// - -clear all - -sysuse auto.dta - -ieboilstart , version(13) - `r(version)' -clear * -sysuse auto.dta , clear - -// diff --git a/run/iedorep/iedorep-target-clear_temp.do b/run/iedorep/iedorep-target-clear_temp.do deleted file mode 100644 index dcabe358..00000000 --- a/run/iedorep/iedorep-target-clear_temp.do +++ /dev/null @@ -1,658 +0,0 @@ - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap postutil clear - cap _return drop _all - cap discard - cap timer clear - cap putdocx clear - cap putpdf clear - cap mata: mata clear - cap python clear - cap java clear -tempname theSORT theRNG allRNGS whichRNG theDATA -tempfile posty allDATA -postfile posty Line str15(Data Err_1 Seed Err_2 Sort Err_3) str2000(Path) using `posty' , replace -local `theRNG' = "`c(rngstate)'" -local `theSORT' = "`c(sortrngstate)'" -datasignature -local `theDATA' = "`r(datasignature)'" -// -if ("`c(rngstate)'" != "``theRNG''") { -post posty (1) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (1) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 1_x -save `1_x' , emptyok -local theLOCALS "`theLOCALS' 1_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (1) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 1" -local 1 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (2) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (2) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 2_x -save `2_x' , emptyok -local theLOCALS "`theLOCALS' 2_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (2) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 2" -local 2 = "`r(datasignature)'" -} - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap _return drop _all - cap mata: mata clear - cap timer clear - cap putdocx clear - cap putpdf clear - cap python clear - cap java clear -if ("`c(rngstate)'" != "``theRNG''") { -post posty (3) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (3) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 3_x -save `3_x' , emptyok -local theLOCALS "`theLOCALS' 3_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (3) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 3" -local 3 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (4) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (4) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 4_x -save `4_x' , emptyok -local theLOCALS "`theLOCALS' 4_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (4) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 4" -local 4 = "`r(datasignature)'" -} -sysuse auto.dta -if ("`c(rngstate)'" != "``theRNG''") { -post posty (5) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (5) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 5_x -save `5_x' , emptyok -local theLOCALS "`theLOCALS' 5_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (5) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 5" -local 5 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (6) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (6) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 6_x -save `6_x' , emptyok -local theLOCALS "`theLOCALS' 6_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (6) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 6" -local 6 = "`r(datasignature)'" -} - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap _return drop _all - cap mata: mata clear - cap timer clear - cap putdocx clear - cap putpdf clear - cap python clear - cap java clear -ieboilstart , version(13) noclear -if ("`c(rngstate)'" != "``theRNG''") { -post posty (7) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (7) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 7_x -save `7_x' , emptyok -local theLOCALS "`theLOCALS' 7_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (7) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 7" -local 7 = "`r(datasignature)'" -} - `r(version)' -if ("`c(rngstate)'" != "``theRNG''") { -post posty (8) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (8) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 8_x -save `8_x' , emptyok -local theLOCALS "`theLOCALS' 8_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (8) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 8" -local 8 = "`r(datasignature)'" -} - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap _return drop _all - cap mata: mata clear - cap timer clear - cap putdocx clear - cap putpdf clear - cap python clear - cap java clear -if ("`c(rngstate)'" != "``theRNG''") { -post posty (9) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (9) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 9_x -save `9_x' , emptyok -local theLOCALS "`theLOCALS' 9_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (9) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 9" -local 9 = "`r(datasignature)'" -} -sysuse auto.dta , clear -if ("`c(rngstate)'" != "``theRNG''") { -post posty (10) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (10) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 10_x -save `10_x' , emptyok -local theLOCALS "`theLOCALS' 10_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (10) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 10" -local 10 = "`r(datasignature)'" -} - -if ("`c(rngstate)'" != "``theRNG''") { -post posty (11) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (11) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 11_x -save `11_x' , emptyok -local theLOCALS "`theLOCALS' 11_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (11) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 11" -local 11 = "`r(datasignature)'" -} -// -if ("`c(rngstate)'" != "``theRNG''") { -post posty (12) ("") ("") ("Used") ("") ("") ("") ("") -local `theRNG' = "`c(rngstate)'" -local `allRNGS' = "``allRNGS'' `c(rngstate)'" -} -if ("`c(sortrngstate)'" != "``theSORT''") { -post posty (12) ("") ("") ("") ("") ("Sorted") ("") ("") -local `theSORT' = "`c(sortrngstate)'" -tempfile 12_x -save `12_x' , emptyok -local theLOCALS "`theLOCALS' 12_x" -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -post posty (12) ("Changed") ("") ("") ("") ("") ("") ("") -local `theDATA' = "`r(datasignature)'" -local theLOCALS "`theLOCALS' 12" -local 12 = "`r(datasignature)'" -} - -// CLEANUP LOCALS BETWEEN FILES ------------------------------------------- -local theLOCALS posty theSORT theRNG allRNGS whichRNG allDATA theDATA theLOCALS `posty' `theSORT' `theRNG' `allRNGS' `whichRNG' `allDATA' `theDATA' `theLOCALS' -mata : st_local("all_locals", invtokens(st_dir("local", "macro", "*")')) -local toDROP : list all_locals - theLOCALS -cap macro drop `toDROP' -foreach macro in `toDROP' { - mata : st_local("`macro'","") -} -// ADVANCE RNG AND CLEAR DATA ------------------------------------------- -qui di `=rnormal()' - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap _return drop _all - cap mata: mata clear - cap timer clear - cap putdocx clear - cap putpdf clear - cap python clear - cap java clear -// SECOND RUN STARTS HERE ------------------------------------------------ - -local `theRNG' = "`c(rngstate)'" -local `theSORT' = "`c(sortrngstate)'" -datasignature -local `theDATA' = "`r(datasignature)'" -// -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (1) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `1_x' -if _rc != 0 { -post posty (1) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`1'") { -post posty (1) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (2) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `2_x' -if _rc != 0 { -post posty (2) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`2'") { -post posty (2) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap _return drop _all - cap mata: mata clear - cap timer clear - cap putdocx clear - cap putpdf clear - cap python clear - cap java clear -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (3) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `3_x' -if _rc != 0 { -post posty (3) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`3'") { -post posty (3) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (4) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `4_x' -if _rc != 0 { -post posty (4) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`4'") { -post posty (4) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -sysuse auto.dta -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (5) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `5_x' -if _rc != 0 { -post posty (5) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`5'") { -post posty (5) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (6) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `6_x' -if _rc != 0 { -post posty (6) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`6'") { -post posty (6) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap _return drop _all - cap mata: mata clear - cap timer clear - cap putdocx clear - cap putpdf clear - cap python clear - cap java clear -ieboilstart , version(13) noclear -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (7) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `7_x' -if _rc != 0 { -post posty (7) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`7'") { -post posty (7) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - `r(version)' -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (8) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `8_x' -if _rc != 0 { -post posty (8) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`8'") { -post posty (8) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - cap drop _all - cap frames reset - cap collect clear - cap label drop _all - cap matrix drop _all - cap scalar drop _all - cap constraint drop _all - cap cluster drop _all - cap file close _all - cap _return drop _all - cap mata: mata clear - cap timer clear - cap putdocx clear - cap putpdf clear - cap python clear - cap java clear -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (9) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `9_x' -if _rc != 0 { -post posty (9) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`9'") { -post posty (9) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -sysuse auto.dta , clear -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (10) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `10_x' -if _rc != 0 { -post posty (10) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`10'") { -post posty (10) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} - -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (11) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `11_x' -if _rc != 0 { -post posty (11) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`11'") { -post posty (11) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -// -if ("`c(rngstate)'" != "``theRNG''") { -local `whichRNG' = ``whichRNG'' + 1 -local `theRNG' = "`c(rngstate)'" -if ("`c(rngstate)'" != "`: word ``whichRNG'' of ``allRNGS'''") { -post posty (12) ("") ("") ("") ("ERROR! ") ("") ("") ("") -} -} -if ("`c(sortrngstate)'" != "``theSORT''") { -local `theSORT' = "`c(sortrngstate)'" -cap cf _all using `12_x' -if _rc != 0 { -post posty (12) ("") ("") ("") ("") ("") ("ERROR! ") ("") -} -} -datasignature -if ("`r(datasignature)'" != "``theDATA''") { -local `theDATA' = "`r(datasignature)'" -if ("`r(datasignature)'" != "`12'") { -post posty (12) ("") ("ERROR! ") ("") ("") ("") ("") ("") -} -} -postclose posty -use `posty' , clear -collapse (firstnm) Data Err_1 Seed Err_2 Sort Err_3 Path , by(Line) -compress diff --git a/run/iegitaddmd/iegitaddmd.do b/run/iegitaddmd/iegitaddmd.do index b87d76e8..2e1e73ed 100644 --- a/run/iegitaddmd/iegitaddmd.do +++ b/run/iegitaddmd/iegitaddmd.do @@ -1,10 +1,26 @@ - ********************************************** - * Set root macro to clone folder wide path macros - *** + ************************ + * Set up root paths if not already set, and set up dev environment + + reproot, project("ietoolkit") roots("clone") prefix("ietk_") + global runfldr "${ietk_clone}/run" + global srcfldr "${ietk_clone}/src" + + * Install the version of this package in + * the plus-ado folder in the test folder + cap mkdir "${runfldr}/dev-env" + repado using "${runfldr}/dev-env" + + cap net uninstall ietoolkit + net install ietoolkit, from("${ietk_clone}/src") replace + + * Set version to target version of ietoolkit + ieboilstart , version(13.1) + `r(version)' + * Macro to run folder - local iegam "run/iegitaddmd" + local iegam "${runfldr}/iegitaddmd" local output "`iegam'/outputs" local cl "`output'/clone" @@ -16,16 +32,13 @@ local customfolder "`output'/customfolder" local customfile "iegitaddmd_custom_file.md" - ********************************************** - * Load commands - - *Load version of iegitaddmd in clone - qui do "src/ado_files/iegitaddmd.ado" - *Load utility command - qui do "run/run_utils.do" + qui do "${runfldr}/run_utils.do" ie_recurse_rmdir, folder("`output'") okifnotexist + ************************ + * Run tests + ********************************************** * Set up folders to test on @@ -35,72 +48,72 @@ ie_recurse_mkdir, folder("`cl'") ie_recurse_mkdir, folder("`db'") - * Use iefolder to create identical project folders - iefolder new project , projectfolder("`cl'") - iefolder new project , projectfolder("`db'") - iefolder new round Baseline , projectfolder("`cl'") - iefolder new round Baseline , projectfolder("`db'") - - iefolder new unitofobs students, projectfolder("`cl'") - iefolder new unitofobs teachers, projectfolder("`cl'") - iefolder new unitofobs schools , projectfolder("`cl'") - - * Remove some folders from the clone to simulate use case 2 (see helpfile for description of use cases) - rmdir "`cl_dw'/Baseline/DataSets/Deidentified" - rmdir "`cl_dw'/Baseline/DataSets/Final" - rmdir "`cl_dw'/Baseline/DataSets/Intermediate" - rmdir "`cl_dw'/Baseline/DataSets" - rmdir "`cl_dw'/Baseline/Questionnaire/Questionnaire Documentation" - - * Create the git folder - local gitfolders gitfilter1 gitfilter2 - foreach gitfolder of local gitfolders { - mkdir "`output'/`gitfolder'" - mkdir "`output'/`gitfolder'/.git" - mkdir "`output'/`gitfolder'/includeme" - mkdir "`output'/`gitfolder'/skipmein2" - mkdir "`output'/`gitfolder'/skipalsomein2" - mkdir "`output'/`gitfolder'/sub" - mkdir "`output'/`gitfolder'/sub/.git" - mkdir "`output'/`gitfolder'/sub/includealsome" - mkdir "`output'/`gitfolder'/ado" - mkdir "`output'/`gitfolder'/asdfasd" - mkdir "`output'/`gitfolder'/asdfasd/ado" - } - - ********************************************** - * Test the command - - *Use case 1 - see helpfile for description of use cases - iegitaddmd , folder("`cl_dw'") auto dryrun - iegitaddmd , folder("`cl_dw'") auto - - *Use case 2 - see helpfile for description of use cases - iegitaddmd , folder("`cl_dw'") comparefolder("`db_dw'") auto dryrun - iegitaddmd , folder("`cl_dw'") comparefolder("`db_dw'") auto - - *Test prompt - mkdir "`cl_dw'/Baseline/DataSets/Final/Publishable" - *iegitaddmd , folder("`cl_dw'") - - *Test skip git folders - iegitaddmd , folder("`output'/gitfilter1") auto - - * Test that the regular file was copied correctly - checksum "`output'/gitfilter1/ado/README.md" - assert `r(checksum)' == 4290144044 - - *Test skip custom - iegitaddmd , folder("`output'/gitfilter2") auto dry skipfolders(skipmein2 skipalsomein2 folderthatnotexist ado) - iegitaddmd , folder("`output'/gitfilter2") auto skipfolders(skipmein2 skipalsomein2 folderthatnotexist ado) - - * Test that folders are not used - cap iegitaddmd , folder("`output'/gitfilter2") auto skipfolders(skipmein2 skipalsomein2 folderthatnotexist asdfasd/ado) - assert _rc == 198 - - * Test customfile - iegitaddmd, folder("`customfolder'") customfile("`iegam'/`customfile'") auto - - * Test that the custom file was actaully used - checksum "`customfolder'/`customfile'" - assert `r(checksum)' == 1932786186 + * Use iefolder to create identical project folders + iefolder new project , projectfolder("`cl'") + iefolder new project , projectfolder("`db'") + iefolder new round Baseline , projectfolder("`cl'") + iefolder new round Baseline , projectfolder("`db'") + + iefolder new unitofobs students, projectfolder("`cl'") + iefolder new unitofobs teachers, projectfolder("`cl'") + iefolder new unitofobs schools , projectfolder("`cl'") + + * Remove some folders from the clone to simulate use case 2 (see helpfile for description of use cases) + rmdir "`cl_dw'/Baseline/DataSets/Deidentified" + rmdir "`cl_dw'/Baseline/DataSets/Final" + rmdir "`cl_dw'/Baseline/DataSets/Intermediate" + rmdir "`cl_dw'/Baseline/DataSets" + rmdir "`cl_dw'/Baseline/Questionnaire/Questionnaire Documentation" + + * Create the git folder + local gitfolders gitfilter1 gitfilter2 + foreach gitfolder of local gitfolders { + mkdir "`output'/`gitfolder'" + mkdir "`output'/`gitfolder'/.git" + mkdir "`output'/`gitfolder'/includeme" + mkdir "`output'/`gitfolder'/skipmein2" + mkdir "`output'/`gitfolder'/skipalsomein2" + mkdir "`output'/`gitfolder'/sub" + mkdir "`output'/`gitfolder'/sub/.git" + mkdir "`output'/`gitfolder'/sub/includealsome" + mkdir "`output'/`gitfolder'/ado" + mkdir "`output'/`gitfolder'/asdfasd" + mkdir "`output'/`gitfolder'/asdfasd/ado" + } + + ********************************************** + * Test the command + + *Use case 1 - see helpfile for description of use cases + iegitaddmd , folder("`cl_dw'") auto dryrun + iegitaddmd , folder("`cl_dw'") auto + + *Use case 2 - see helpfile for description of use cases + iegitaddmd , folder("`cl_dw'") comparefolder("`db_dw'") auto dryrun + iegitaddmd , folder("`cl_dw'") comparefolder("`db_dw'") auto + + *Test prompt + mkdir "`cl_dw'/Baseline/DataSets/Final/Publishable" + *iegitaddmd , folder("`cl_dw'") + + *Test skip git folders + iegitaddmd , folder("`output'/gitfilter1") auto + + * Test that the regular file was copied correctly + checksum "`output'/gitfilter1/ado/README.md" + assert `r(checksum)' == 4290144044 + + *Test skip custom + iegitaddmd , folder("`output'/gitfilter2") auto dry skipfolders(skipmein2 skipalsomein2 folderthatnotexist ado) + iegitaddmd , folder("`output'/gitfilter2") auto skipfolders(skipmein2 skipalsomein2 folderthatnotexist ado) + + * Test that folders are not used + cap iegitaddmd , folder("`output'/gitfilter2") auto skipfolders(skipmein2 skipalsomein2 folderthatnotexist asdfasd/ado) + assert _rc == 198 + + * Test customfile + iegitaddmd, folder("`customfolder'") customfile("`iegam'/`customfile'") auto + + * Test that the custom file was actaully used + checksum "`customfolder'/`customfile'" + assert `r(checksum)' == 1932786186 diff --git a/run/iekdensity/iekdensity.do b/run/iekdensity/iekdensity.do index af1126c6..d12c844e 100644 --- a/run/iekdensity/iekdensity.do +++ b/run/iekdensity/iekdensity.do @@ -1,13 +1,30 @@ + ************************ + * Set up root paths if not already set, and set up dev environment + + reproot, project("ietoolkit") roots("clone") prefix("ietk_") + global runfldr "${ietk_clone}/run" + global srcfldr "${ietk_clone}/src" + + * Install the version of this package in + * the plus-ado folder in the test folder + cap mkdir "${runfldr}/dev-env" + repado using "${runfldr}/dev-env" + + cap net uninstall ietoolkit + net install ietoolkit, from("${ietk_clone}/src") replace + + * Set version to target version of ietoolkit + ieboilstart , version(13.1) + `r(version)' + + ************************ + * Run tests + /******************************************************************************* - Set up + Set up test data *******************************************************************************/ - * Load the version in this clone into memory. If you need to use the version - * currently installed in you instance of Stata, then simply re-start Stata. - * Set up the ietoolkit_clone global root path in ietoolkit\run\run_master.do - qui do "src/ado_files/iekdensity.ado" - * Load data sysuse auto, clear diff --git a/run/iesave/iesave1.do b/run/iesave/iesave1.do index 98f896fe..4b9087de 100644 --- a/run/iesave/iesave1.do +++ b/run/iesave/iesave1.do @@ -1,34 +1,46 @@ - /***************************************************************************** - Set up - *****************************************************************************/ + ************************ + * Set up root paths if not already set, and set up dev environment + + reproot, project("ietoolkit") roots("clone") prefix("ietk_") + global runfldr "${ietk_clone}/run" + global srcfldr "${ietk_clone}/src" + + * Install the version of this package in + * the plus-ado folder in the test folder + cap mkdir "${runfldr}/dev-env" + repado using "${runfldr}/dev-env" + + cap net uninstall ietoolkit + net install ietoolkit, from("${ietk_clone}/src") replace + + * Set version to target version of ietoolkit + ieboilstart , version(13.1) + `r(version)' * Comment out to run without debug mode local debug debug - local iesave_folder "run/iesave" + local iesave_folder "${runfldr}/iesave" local out "`iesave_folder'/outputs/iesave1" local reports_folder "`out'/reports" - * Load the version in this clone into memory. If you need to use the version - * currently installed in you instance of Stata, then simply re-start Stata. - * Set up the ietoolkit_clone global root path in ietoolkit\run\run_master.do - qui do "src/ado_files/iesave.ado" - qui do "src/ado_files/ietoolkit.ado" - *Load utility functions that create and resets folders across runs - qui do "run/run_utils.do" + qui do "${runfldr}/run_utils.do" + + *Remove all previously generated output (if any) + ie_recurse_rmdir, folder("`out'") okifnotexist + + *Re-create the reports folders + ie_recurse_mkdir, folder("`reports_folder'") + + ************************ + * Run tests /***************************************************************************** Run this run file once for each save file version *****************************************************************************/ - *Remove all previously generated output (if any) - ie_recurse_rmdir, folder("`out'") okifnotexist - - *Re-create the reports folders - ie_recurse_mkdir, folder("`reports_folder'") - * Only include the version your Stata version can run if `c(stata_version)' < 13 local stata_versions 12 else if `c(stata_version)' < 14 local stata_versions 12 13 @@ -113,28 +125,28 @@ * Load auto sysuse auto, clear - + * Create ids that are only unique in combination - gen village = foreign + gen village = foreign sort village make by village : gen village_hhid = _n - + * First test that it works without missing iesave "`version_folder'/id_3.dta", /// idvars(village village_hhid) version(15) replace - + *Add this file to list of expected files local expected_files `"`expected_files' "id_3.dta""' - + * Create some missing vars replace village = . in 5 replace village_hhid = . in 65 - + * Run iesave and test for expected error cap iesave "`version_folder'/err_id_3.dta", /// idvars(village village_hhid) version(15) replace assert _rc == 459 - + /********************* absence of userinfo *********************/ diff --git a/run/iesave/iesave2.do b/run/iesave/iesave2.do index 431c2199..08d7fa0c 100644 --- a/run/iesave/iesave2.do +++ b/run/iesave/iesave2.do @@ -1,15 +1,34 @@ - do "src/ado_files/ietoolkit.ado" - do "src/ado_files/iesave.ado" + ************************ + * Set up root paths if not already set, and set up dev environment - qui do "run/run_utils.do" + reproot, project("ietoolkit") roots("clone") prefix("ietk_") + global runfldr "${ietk_clone}/run" + global srcfldr "${ietk_clone}/src" - local out "run/iesave/outputs/iesave2" + * Install the version of this package in + * the plus-ado folder in the test folder + cap mkdir "${runfldr}/dev-env" + repado using "${runfldr}/dev-env" + + cap net uninstall ietoolkit + net install ietoolkit, from("${ietk_clone}/src") replace + + * Set version to target version of ietoolkit + ieboilstart , version(13.1) + `r(version)' + + qui do "${runfldr}/run_utils.do" + + local out "${runfldr}/iesave/outputs/iesave2" *Delete all content in the output folder ie_recurse_rmdir, folder("`out'") okifnotexist ie_recurse_mkdir, folder("`out'") + ************************ + * Run tests + sysuse auto, clear * Creaeting a file to be able to trigger the first error diff --git a/run/iesave/outputs/iesave1/reports/auto_csv_v12.csv b/run/iesave/outputs/iesave1/reports/auto_csv_v12.csv index e3dbcf7b..289b99b3 100644 --- a/run/iesave/outputs/iesave1/reports/auto_csv_v12.csv +++ b/run/iesave/outputs/iesave1/reports/auto_csv_v12.csv @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave Number of observations:,74 Number of variables:,16 diff --git a/run/iesave/outputs/iesave1/reports/auto_csv_v13.csv b/run/iesave/outputs/iesave1/reports/auto_csv_v13.csv index ad8cab92..d7fdb8f3 100644 --- a/run/iesave/outputs/iesave1/reports/auto_csv_v13.csv +++ b/run/iesave/outputs/iesave1/reports/auto_csv_v13.csv @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave Number of observations:,74 Number of variables:,16 diff --git a/run/iesave/outputs/iesave1/reports/auto_csv_v14.csv b/run/iesave/outputs/iesave1/reports/auto_csv_v14.csv index 108d92ed..baa1b8ce 100644 --- a/run/iesave/outputs/iesave1/reports/auto_csv_v14.csv +++ b/run/iesave/outputs/iesave1/reports/auto_csv_v14.csv @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave Number of observations:,74 Number of variables:,16 diff --git a/run/iesave/outputs/iesave1/reports/auto_defualt_v12.md b/run/iesave/outputs/iesave1/reports/auto_defualt_v12.md index b7bceaa7..b801f1a0 100644 --- a/run/iesave/outputs/iesave1/reports/auto_defualt_v12.md +++ b/run/iesave/outputs/iesave1/reports/auto_defualt_v12.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 16 diff --git a/run/iesave/outputs/iesave1/reports/auto_defualt_v13.md b/run/iesave/outputs/iesave1/reports/auto_defualt_v13.md index 373be5e2..cb931a71 100644 --- a/run/iesave/outputs/iesave1/reports/auto_defualt_v13.md +++ b/run/iesave/outputs/iesave1/reports/auto_defualt_v13.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 16 diff --git a/run/iesave/outputs/iesave1/reports/auto_defualt_v14.md b/run/iesave/outputs/iesave1/reports/auto_defualt_v14.md index 4f38cce1..ffd35eae 100644 --- a/run/iesave/outputs/iesave1/reports/auto_defualt_v14.md +++ b/run/iesave/outputs/iesave1/reports/auto_defualt_v14.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 16 diff --git a/run/iesave/outputs/iesave1/reports/report_replace.md b/run/iesave/outputs/iesave1/reports/report_replace.md index 8a304608..c01c5bc2 100644 --- a/run/iesave/outputs/iesave1/reports/report_replace.md +++ b/run/iesave/outputs/iesave1/reports/report_replace.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 12 diff --git a/run/iesave/outputs/iesave1/reports/reportpath_replace.csv b/run/iesave/outputs/iesave1/reports/reportpath_replace.csv index a8d7ae59..7ede9af3 100644 --- a/run/iesave/outputs/iesave1/reports/reportpath_replace.csv +++ b/run/iesave/outputs/iesave1/reports/reportpath_replace.csv @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave Number of observations:,74 Number of variables:,12 diff --git a/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v12.md b/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v12.md index 9a702f86..8b519d8a 100644 --- a/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v12.md +++ b/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v12.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 16 diff --git a/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v13.md b/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v13.md index 14c71d1d..93bdb6a7 100644 --- a/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v13.md +++ b/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v13.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 16 diff --git a/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v14.md b/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v14.md index 240b5435..1816faad 100644 --- a/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v14.md +++ b/run/iesave/outputs/iesave1/reports/userlocation/auto_location_v14.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 16 diff --git a/run/iesave/outputs/iesave2/auto-2id.md b/run/iesave/outputs/iesave2/auto-2id.md index fa152fe2..de9d5d5e 100644 --- a/run/iesave/outputs/iesave2/auto-2id.md +++ b/run/iesave/outputs/iesave2/auto-2id.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 12 diff --git a/run/iesave/outputs/iesave2/auto-csv.csv b/run/iesave/outputs/iesave2/auto-csv.csv index 428a4ecf..f4e76660 100644 --- a/run/iesave/outputs/iesave2/auto-csv.csv +++ b/run/iesave/outputs/iesave2/auto-csv.csv @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave Number of observations:,74 Number of variables:,12 diff --git a/run/iesave/outputs/iesave2/auto-noalpha.md b/run/iesave/outputs/iesave2/auto-noalpha.md index a9777dfe..d705f5f0 100644 --- a/run/iesave/outputs/iesave2/auto-noalpha.md +++ b/run/iesave/outputs/iesave2/auto-noalpha.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 12 diff --git a/run/iesave/outputs/iesave2/auto-userinfo.md b/run/iesave/outputs/iesave2/auto-userinfo.md index 805e4c6c..8d161b5e 100644 --- a/run/iesave/outputs/iesave2/auto-userinfo.md +++ b/run/iesave/outputs/iesave2/auto-userinfo.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 12 diff --git a/run/iesave/outputs/iesave2/auto.md b/run/iesave/outputs/iesave2/auto.md index 8b512ed2..da93b229 100644 --- a/run/iesave/outputs/iesave2/auto.md +++ b/run/iesave/outputs/iesave2/auto.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 12 diff --git a/run/iesave/outputs/iesave2/my-path.csv b/run/iesave/outputs/iesave2/my-path.csv index ca3b0f41..b4d9036a 100644 --- a/run/iesave/outputs/iesave2/my-path.csv +++ b/run/iesave/outputs/iesave2/my-path.csv @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave Number of observations:,74 Number of variables:,12 diff --git a/run/iesave/outputs/iesave2/my-path.md b/run/iesave/outputs/iesave2/my-path.md index 805e4c6c..8d161b5e 100644 --- a/run/iesave/outputs/iesave2/my-path.md +++ b/run/iesave/outputs/iesave2/my-path.md @@ -1,4 +1,4 @@ -This report was created by the Stata command iesave (version 7.2). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave +This report was created by the Stata command iesave (version 7.3). Read more about this command and the purpose of this report on https://dimewiki.worldbank.org/iesave - **Number of observations:** 74 - **Number of variables:** 12 diff --git a/run/main.do b/run/main.do index a7343727..d2f0fe1b 100644 --- a/run/main.do +++ b/run/main.do @@ -1,41 +1,62 @@ /******************************************************************************* - PART 1: Folder paths + PART 1: Make sure repkit is installed *******************************************************************************/ - ** NOTE: Nothing to do here!! - - ** This file is meant to run withing the ietoolkit.strp project - ** Go to the root folder of the ietoolkit clone and open ietoolkit.strp - ** and then run this file - - * This main.do is only meant to be used when you want to run the run-files - * for all commands + * The rootpaths in these run files are managed with + * the command reproot in the package repkit. + * Make sure that you have version v1.2 or more more recent + * installed of repkit on your computer. To set up reproot on your comptuer + * see this article https://worldbank.github.io/repkit/articles/reproot-files.html + + * Make sure that repkit is installed + * If not, prompt user to install it from ssc + cap which repkit + if _rc == 111 { + di as error "{pstd}You need to have {cmd:repkit} installed to run this reproducibility package. Click {stata ssc install repkit, replace} to do so.{p_end}" + } + + * Display what version of repkit you have installed - >1.2 is required + repkit + reproot, project("ietoolkit") roots("clone") prefix("ietk_") + + global runfldr "${ietk_clone}/run" + + * Install the version of this package in + * the plus-ado folder in the test folder + cap mkdir "${runfldr}/dev-env" + repado using "${runfldr}/dev-env" + + * Make sure repkit is installed in /dev-env/ + cap which repkit + if _rc == 111 { + ssc install repkit, replace + } /******************************************************************************* PART 2: run all command *******************************************************************************/ - + *This run file depends on iefolder, make sure that command is tested before this run file - + * iegitaddmd - do "run/iegitaddmd/iegitaddmd.do" - + do "${runfldr}/iegitaddmd/iegitaddmd.do" + * iekdensity - do "run/iekdensity/iekdensity.do" - + do "${runfldr}/iekdensity/iekdensity.do" + * iesave - do "run/iesave/iesave1.do" - do "run/iesave/iesave2.do" + do "${runfldr}/iesave/iesave1.do" + do "${runfldr}/iesave/iesave2.do" * iebaltab - do "run/iebaltab/iebaltab1.do" - do "run/iebaltab/iebaltab2.do" + do "${runfldr}/iebaltab/iebaltab1.do" + do "${runfldr}/iebaltab/iebaltab2.do" * ieddtab - do "run/ieddtab/ieddtab.do" - + *do "${runfldr}/ieddtab/ieddtab.do" + * ieboilstart * NOTE: this runfile changes settings such that Stata needs to be re-started * in order to comment this file out - do "run/ieboilstart/ieboilstart.do" \ No newline at end of file + do "${runfldr}/ieboilstart/ieboilstart.do"