Dear All,
I encountered a problem when I tried to combine imputed dataset for coarsened matching.
First, I used MICEto get 10 imputed datasets.
mi set mlong
mi register imputed mathhw leadership engsec speced
mi impute chained (pmm,knn(5))mathhw leadership engsec speced =F1TXMSTD bytxmstd BYSES1 F1MATHSE sex pmt pms urban ownership stech, add(10) rseed (53421)
Second, I saved the datasets respectively.
forval i=1/10 {
preserve
mi extract `i'
save imp`i',replace
restore
}
Third, I followed Blackwell,Iacus King and Porro's instruction and ran the following code
cem bytxmstd BYSES1QU mathhw F1MATHSE (0,-0.755,-.013,.746,1.811) engsec speced sex leadership ( 1.671834, 2.882461,3.535442, 3.646471) if tpmt2!=.,treatment(tpmt2) miname(imp) misets(10)
After running the code, I encountered the following problem.
I would appreciate it if you can give some tips for troubleshooting the problem. The paper I refer to can be seen here https://gking.harvard.edu/files/cem-stata.pdf. The following link also includes the dataset containing all the imputed datasets https://www.dropbox.com/sh/9jr29v3cu...vismlIaGa?dl=0
I encountered a problem when I tried to combine imputed dataset for coarsened matching.
First, I used MICEto get 10 imputed datasets.
mi set mlong
mi register imputed mathhw leadership engsec speced
mi impute chained (pmm,knn(5))mathhw leadership engsec speced =F1TXMSTD bytxmstd BYSES1 F1MATHSE sex pmt pms urban ownership stech, add(10) rseed (53421)
Second, I saved the datasets respectively.
forval i=1/10 {
preserve
mi extract `i'
save imp`i',replace
restore
}
Third, I followed Blackwell,Iacus King and Porro's instruction and ran the following code
cem bytxmstd BYSES1QU mathhw F1MATHSE (0,-0.755,-.013,.746,1.811) engsec speced sex leadership ( 1.671834, 2.882461,3.535442, 3.646471) if tpmt2!=.,treatment(tpmt2) miname(imp) misets(10)
After running the code, I encountered the following problem.
I would appreciate it if you can give some tips for troubleshooting the problem. The paper I refer to can be seen here https://gking.harvard.edu/files/cem-stata.pdf. The following link also includes the dataset containing all the imputed datasets https://www.dropbox.com/sh/9jr29v3cu...vismlIaGa?dl=0
Comment