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
maximum number of iterations exceeded" with predictnl commandPlease stata show me this message "maximum number of iterations exceeded" when i use the predictnl c…
Create hbar with multiple dummy varsHello everyone, I would like to create a bar in which on the X axis I have a numerical var and on t…
histogram colorsHi everyone, i hope you are all keeping safe. I have a simple question. i am creating a histogram pl…
Fontsize of atrisk table in survival sts graphHi all! I struggle to define the fontsize for the atrisk table displayed in the graph when running …
Loops and local macroGreetings everybody, I have one big dataset with variables starting from v4 to v66, and I want to d…
Subscribe to:
Post Comments (Atom)
0 Response to Multiple imputation with panel data
Post a Comment