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
What fixed effects I should add when using triple difference in firm level?In my difference-in-difference setting (double diff), I examine the impact of anticorruption laws on…
create v3 which shows number of v1 that share the same v2 valueHi, My dataset has 2 variables that I am interested in seeing the relationship between. v1 is 'uni…
coefplot plotting results from categorical variableDear all, I would like to use coefplot to compare the coefficients from different models and catego…
Is there any package for stacked event-by-event estimates ?I am reading a paper of Cengiz, 2019 about using stacked event-by-event estimates for the Difference…
Labels of restricted categories appearing in graph when using -by()-I want to graph tobacco use for couples in different value groups. While the values variable has 12 …
Subscribe to:
Post Comments (Atom)
0 Response to Multiple imputation with panel data
Post a Comment