Hi Experts:
I am now trying to do some imuptation for my data with purpose of sequence analysis. I followed Brendan's paper https://www.stata-journal.com/articl...article=st0445
However, I faced a very basic issue. I first transferred data into wide format. and then I used mict_prep. After that, I used mict_impute.
The error message appeared: "variable wave not found
Your mi data are xtset and some of the variables previously declared by xtset are not in the
dataset. mi verifies that none of the xtset variables are also registered as imputed or
passive. Type mi xtset, clear to clear old no-longer-valid settings."
then I tried "xtset, clear" before "mict_impute". The result of mice_impute shows no observation. I noticed my "_mct_last" variable is all missing.
[CODE]reshape wide multiX, i( idalias) j( wave); mict_prep multiX, id( idalias ); xtset, clear; mict_impute; CODE]
Sorry for asking this basic question. I tried several times and checked some papers but still can not solve it.
Thank you,
Connie
I am now trying to do some imuptation for my data with purpose of sequence analysis. I followed Brendan's paper https://www.stata-journal.com/articl...article=st0445
However, I faced a very basic issue. I first transferred data into wide format. and then I used mict_prep. After that, I used mict_impute.
The error message appeared: "variable wave not found
Your mi data are xtset and some of the variables previously declared by xtset are not in the
dataset. mi verifies that none of the xtset variables are also registered as imputed or
passive. Type mi xtset, clear to clear old no-longer-valid settings."
then I tried "xtset, clear" before "mict_impute". The result of mice_impute shows no observation. I noticed my "_mct_last" variable is all missing.
[CODE]reshape wide multiX, i( idalias) j( wave); mict_prep multiX, id( idalias ); xtset, clear; mict_impute; CODE]
Sorry for asking this basic question. I tried several times and checked some papers but still can not solve it.
Thank you,
Connie
Comment