Hello Stata Users,
I have been trying to import previously imputed data (m=0, 1,2,…..20) using mi import command. The data set includes the original un-imputed data(m=0) which has missing values and 20 (m=1,2,3.....20) imputed datasets. Below is my code:
mi import flong, m(imp_number) id(record_id) imputed(v1 v2 v3 v4 v5 v6)
When I run the above code it returns with an error message.
“variable record_id has invalid values
record_id takes on at least one value if imp_number>0 that it does not if imp_number==0”
However, the same code works if I delete the original data and import only imputed datasets. But the problem is it takes first imputed dataset (m=1 reads as m=0) as original and takes remaining 19 imputed dataset which is not correct.
Can anyone please help me in importing the data with the original included?
Thanks in advance.
Baker
Related Posts with Importing previously imputed data using mi import
How to create multiple tables in single word file Using Outreg2 (three different Panel)Hi, I want to create three separate tables for three panels in a word file. I know how to use append…
Test for Autocorrelation and Time lagged variablesHello i ve got following questions.. 1. Is there a test for autocorrelation that fits with pooled …
Labeling order numbersexample data ORDER ID The passing time 61785B020027AD01 1 61785B020027AD01 0 61785B020027AD…
margins interaction term in mi estimate- meglmHi everyone, i have a problem with a mixed logit model with multiple imputated data. I have an inter…
Non linear equation in STATAHello, I am looking for the code to solve for t(p): e^t + t = p for values p=1 and p = 4. Thanks…
Subscribe to:
Post Comments (Atom)
0 Response to Importing previously imputed data using mi import
Post a Comment