Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Imputation for categorical time series

    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

  • #2
    Hi Connie,

    Sorry for the late response. I don't read Stata Forum very regularly.

    I'm afraid you don't give enough information either about your data or the exact commands you used for me to answer your question.

    Brendan

    Comment

    Working...
    X