Withing multiple imputation, you can set your style as wide, mlong etc. I select which one to use based on my data set's format. Once selected, you register your imputed and regular variables and I run the chained multiple imputation before the final analysis..
i.e.
mi set wide
mi register imputed marriage_Stat
mi register regular age sex cancer_Found
mi impute chained (mlogit) marriage_Stat = age sex cancer_Found, add(10) rseed augment
mi estimate: logit cancer_Found age i.sex i.marriage_Stat
However I was having doubts on which data set format to use i.e. wide vs mlong.
I then read that once the multiple imputation command has started, you can switch between formats using: mi convert which I was mainly looking at for curiosity.
However, when I change data set format, all of my values from analysis change. This hypothetically makes sense, but I'm trying to figure out why the results would be different. I'm fairly certain that my style is actually wide, but I wonder if I can change format after the declaration, why would the results from wide and mlong be different?
i.e.
mi set wide
mi register imputed marriage_Stat
mi register regular age sex cancer_Found
mi impute chained (mlogit) marriage_Stat = age sex cancer_Found, add(10) rseed augment
mi estimate: logit cancer_Found age i.sex i.marriage_Stat
However I was having doubts on which data set format to use i.e. wide vs mlong.
I then read that once the multiple imputation command has started, you can switch between formats using: mi convert which I was mainly looking at for curiosity.
However, when I change data set format, all of my values from analysis change. This hypothetically makes sense, but I'm trying to figure out why the results would be different. I'm fairly certain that my style is actually wide, but I wonder if I can change format after the declaration, why would the results from wide and mlong be different?
Comment