I was looking at the example below on the SAS website and I was wondering how to use the results of this model to predict unconditional wages (ie. E(w) versus E(w|inlf=1).
Are the wages predicted using the second regression conditional wage (ie. E(wage|inlf=1) )?
proc qlim data=mroz; model inlf = nwifeinc educ exper expersq age kidslt6 kidsge6 /discrete; model lwage = educ exper expersq / select(inlf=1); run;
Thanks for the help.
Hello @ZMX ,
You can obtain unconditional expected value and conditional expected values using the EXPECTED and CONDITOINAL options in the OUTPUT statement directly in PROC QLIM.
For the sample selection model, the PREDICTED value is equal to the EXPECTED value, which is also equal to the XBETA value for the continuous dependent variable in the main equation(lwage in the example). You can verify this by specifying the OUTPUT statement like below:
output out = outdata expected xbeta predicted conditional mills ;
and look at the outdata data set.
The conditional expected value differs from the expected/predicted/xbeta values by adding to it another term, rho*sigma_lwage*Mills_inlf, in other words,
Predicted_lwage = Expected_lwage = xbeta_lwage ;
Conditional_lwage = xbeta_lwage + rho*sigma_lwage*Mills_inlf ;
I hope this helps.
Hello @ZMX ,
You can obtain unconditional expected value and conditional expected values using the EXPECTED and CONDITOINAL options in the OUTPUT statement directly in PROC QLIM.
For the sample selection model, the PREDICTED value is equal to the EXPECTED value, which is also equal to the XBETA value for the continuous dependent variable in the main equation(lwage in the example). You can verify this by specifying the OUTPUT statement like below:
output out = outdata expected xbeta predicted conditional mills ;
and look at the outdata data set.
The conditional expected value differs from the expected/predicted/xbeta values by adding to it another term, rho*sigma_lwage*Mills_inlf, in other words,
Predicted_lwage = Expected_lwage = xbeta_lwage ;
Conditional_lwage = xbeta_lwage + rho*sigma_lwage*Mills_inlf ;
I hope this helps.
It did help. Thank you for the response. 🙂
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.