Hello,
I want to use a multiple imputation panel dataset (originally in SPSS) in Stata. To do so, I wrote the following do-file:
mi import flong, m(Imputation_) id(nomem_encr year)
egen id=group(nomem_encr)
mi xtset id year
panel variable: id (unbalanced)
time variable: year, 2008 to 2018, but with gaps
delta: 1 unit
So far, everything works. However, when I ask for xtdes, I get the following error: repeated time values within panel.
What else should I do to recognize my dataset as both a multiple imputation dataset and a panel dataset?
Also, when I ask for xttab or xtreg, the data is grouped by id, but the different imputations are not taken into account. Using 'mi estimate: xttab' does not solve my problem, as I then get the error that xttab is not officially supported by mi estimate. How can I make sure Stata xttab and xtreg take into account the multiple imputations as well as the multiple observations nested in respondents?
Thanks.
Related Posts with Multiple imputation with panel data
Question on Implementation of First-Difference Regression and InterpretationDear All, I am trying to estimate the effect of tariffs changes on employment within firms. Thus, I…
Reshape and group data by highest value of variablesHi Statalisters I am working on a somewhat intricate reshape of my data set. I have done some resea…
Creating spells of 3 months.Dear All, I am using prescription drug claims data and want to identify spells of 3 months of contin…
Regression with very short periods (daily)Hello, Suppose I have a panel data, with T= 31 days and the number of individuals is 22. Hence, T&g…
Regression Discontinuity With Binary OutcomesHi, is it possible to use package rdrobust to perform a logit regression with binary outcome variab…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple imputation with panel data
Post a Comment