Hello,
I am trying to impute all missing values including covariates and outcomes at 3 months of follow-up and 9 months of follow-up using multiple imputation with chained equations (data were assumed to be missing at random).
For those who had missing outcomes at both 3-month and 9-month, I'm trying to impute the outcome variables at 3 months first and use imputed data to impute the outcomes at 9 months. Can I use imputed outcome data (3months) for imputing another outcome data (9months)?
mi set mlong
mi register regular age sex baseline
mi register imputed outcome_3month covariate
mi impute chained (logit) covariate (logit) outcome_3month=age sex baline, add(20) rseed(1500) burin(20)
How to save the imputed variables and use them to impute outcome_9month?
Thank you so much for your help.
Related Posts with Multiple imputation, mi
Loading user table to ICIO for GVC analysesHi, I am using the long-run WIOD table for GVC analysis using the STATA command icio. One needs to …
Does anyone know a clever way to add R2 to "graph twoway lfit"?I am using the below code to fit a linear regression line, Private_Hospital is a binary variable gr…
Return how many variables were overwritten (because they had the same name) in a merge?If I merge two datasets and two variables in the datasets had the same name, how can I get Stata to …
Calling in SQL through ODBC--String variables & choosing dataHello Statalist , I am using Stata 17 on Windows. I am new to the ODBC process and I am trying to c…
Ordering Multiples variablesI am having a dataset in wide format for almost 80 years for 100 countries for about 200 variables. …
Subscribe to:
Post Comments (Atom)
0 Response to Multiple imputation, mi
Post a Comment