Hi, I am using stata v18 on mac OS Ventura 13.4.1
I am using a dataset with a total of 8410 observations, when I check missing data I get the following results:
Variable | Obs=. Obs>. Obs<.
-------------+--------------------------------+----
ssupport6 | 3,780 4,630
adl | 673 7,737
wealth | 208 8,202
education | 171 8,239
--------------------------------------------------
I run the imputations using the following code and the result returns the model results but with only 7297 observations. What is the reason for this please?
Thank you
I am using a dataset with a total of 8410 observations, when I check missing data I get the following results:
Code:
misstable summarize agew4 sex ethnicity notmarried adl wealth education mmw5 ssupport4
-------------+--------------------------------+----
ssupport6 | 3,780 4,630
adl | 673 7,737
wealth | 208 8,202
education | 171 8,239
--------------------------------------------------
I run the imputations using the following code and the result returns the model results but with only 7297 observations. What is the reason for this please?
Code:
global modelb agew4 i.sex i.ethnicity global modelc $modelb i.education i.wealth i.notmarried i.adl mi set mlong mi register regular sex agew4 ethnicity notmarried mmw5 mi register imputed ssupport4 education wealth adl mi impute chained (regress) ssupport4 (logit, augment) adl (ologit, augment) wealth education = mmw5 sex agew4 ethnicity notmarried, add(45) rseed(54321) mi estimate, post: nbreg mmw5 ssupport4 $modelc [pweight=w4scwt], irr
Comment