hello STATA. I have a panel data for 45 developed countries for 25 years. the countries are paired to make bilateral combination. my estimation model has 2 dependent variables as tradeflow_imf_o (continuous variable) and tradeflow_imf_d (continuous variable). my independent variables are disputes (categorical variable), outcome (factor variable), timeframe (factor variable) and rta (dummy variable). i have missing data for tradeflow_imf_o, tradeflow_imf_d and rta, although 85% of the dataset has completed data for these 3 variables. the missing pattern for these 3 variables by using
the result i get is
Missing-value patterns
(1 means complete)
Variables are (1) rta (2) tradeflow_imf_d (3) tradeflow_imf_o
the pattern seems to be non-monotone, although i am not sure about it. plus, i am assuming the data to be MCAR.
the MICE code i used is
although after a successful code run, the results i get are undesired. the variables tradeflow_imf_d and tradeflow_imf_o impute very low negative values although their value should be above 0 and positive.
please correct my code.
thank you
Code:
misstable pattern tradeflow_imf_dtradeflow_imf_o rta
Missing-value patterns
(1 means complete)
| Pattern |
| Percent | 1 | 2 | 3 |
| 87% | 1 | 1 | 1 |
| 10 | 1 | 1 | 0 |
| 2 | 0 | 0 | 0 |
| <1 | 1 | 0 | 0 |
| <1 | 1 | 0 | 1 |
| <1 | 0 | 0 | 1 |
| <1 | 0 | 1 | 0 |
| 100% |
the pattern seems to be non-monotone, although i am not sure about it. plus, i am assuming the data to be MCAR.
the MICE code i used is
Code:
mi set mlong mi xtset year mi register imputed tradeflow_imf_d tradeflow_imf_o rta mi register regular disputes outcome timeframe mi impute chained (regress) tradeflow_imf_d tradeflow_imf_o (logit) rta = disputes outcome timeframe, add(20) rseed(random_number)
please correct my code.
thank you

Comment