Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Multiplying variables / Generating new variables after 'mi impute' - STATA 11


From   Moses Lee <Moses.Lee@anu.edu.au>
To   statalist@hsphsun2.harvard.edu
Subject   st: Multiplying variables / Generating new variables after 'mi impute' - STATA 11
Date   Wed, 28 Apr 2010 17:00:59 +1000

Hi STATA listers.

I'm wondering if any if you could advise the following.

I need to perform production function regression. This requires 2 stage.

1) Impute missing variables
2) Generate new variables - by multiplying two existing variables after imputing missing variables.

I have tried running 'mi impute mvn' command. However, I realised the imputed values do not replace the missing values in the original variables. This becomes a problem if I need to estimate new variables which require a product of the original variables.

An example: X and Y are variables that require imputing. After running the mi impute command, I need to 'gen (newvar)=X*Y. However, if the missing values in the existing X and Y are not replaced with the imputed values, I'm unable to generate a new variable.

Can someone advise on how to replace missing values with imputed values? It seems impossible to generate new vars with the estimated imputed values.

Many thanks.
Moses

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index