Hello, I am trying to generate a new variable equal to the sum for a number of observations only if none of the observations are missing. On another thread (see here or link below) the proposed code works well with simplified data. However, it does not work when applied to the data after multiple imputation (using egen within mi passive).
Any ideas on why this is the case or an alternative way to obtain the desired variable?
Thank you very much.
Rodolfo.
Any ideas on why this is the case or an alternative way to obtain the desired variable?
Thank you very much.
Rodolfo.