Hi everyone,
I am a new Stata user. I am working with Stata 12 and mi commands.
I am trying to impute 5 variables (ordinal and binary) and, then, generate a new variable with these "new complete variables".
Example:
mi register imputed provider internet computer debit car
mi impute logit internet, add(5) force
mi impute logit computer, add(5) force
mi impute logit debit, add(5) force
mi impute ologit provider, add(5) force
mi impute ologit car, add(5) force
*provider and car (ordinal variables)
*internet, computer and debit (binary variables)
After the imputation, I need to generate a new variable using these 5 imputed variables and 2 other variables (school and healthcare) that are not imputed.
The problem is that if I use 5 imputation (option "add(5)" ), "mi impute" command generates approximately 35 imputed variables for each ordinal and binary variable imputed. I am not sure if obtaining the mode of these 35 variables is correct, in order to obtain 1 variable/column for each imputed variable for further analysis.
I don´t want to use an estimate command after the imputation, is the correct approach to obtain the mode in row of these 35 imputed variables (columns)? If it´s not, what should I do? which options do I have?
*For each imputed variable I obtain 35 columns of "_#_varname", so I consider all of them to obtain the mode.
Extra question:
What should I do to obtain the mode in a row? Wich command should I use ? That is obtaining the mode of different imputed values of the 35 new columns for each observation (row)...
Thank you in advance!
I am a new Stata user. I am working with Stata 12 and mi commands.
I am trying to impute 5 variables (ordinal and binary) and, then, generate a new variable with these "new complete variables".
Example:
mi register imputed provider internet computer debit car
mi impute logit internet, add(5) force
mi impute logit computer, add(5) force
mi impute logit debit, add(5) force
mi impute ologit provider, add(5) force
mi impute ologit car, add(5) force
*provider and car (ordinal variables)
*internet, computer and debit (binary variables)
After the imputation, I need to generate a new variable using these 5 imputed variables and 2 other variables (school and healthcare) that are not imputed.
The problem is that if I use 5 imputation (option "add(5)" ), "mi impute" command generates approximately 35 imputed variables for each ordinal and binary variable imputed. I am not sure if obtaining the mode of these 35 variables is correct, in order to obtain 1 variable/column for each imputed variable for further analysis.
I don´t want to use an estimate command after the imputation, is the correct approach to obtain the mode in row of these 35 imputed variables (columns)? If it´s not, what should I do? which options do I have?
*For each imputed variable I obtain 35 columns of "_#_varname", so I consider all of them to obtain the mode.
Extra question:
What should I do to obtain the mode in a row? Wich command should I use ? That is obtaining the mode of different imputed values of the 35 new columns for each observation (row)...
Thank you in advance!
Comment