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.