Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: smearing and bootstrapping


From   Orgul Demet Ozturk <[email protected]>
To   [email protected]
Subject   st: smearing and bootstrapping
Date   Sun, 25 Jul 2010 15:02:31 -0400

Hi
I am trying to estimate a two part model and I want to do smearing to get
correct predictions.  Model is something like this:

probit anyrxexp Xvar
predict probanyrx

reg logrxexp Xvar
predict logRxXB, xb
gen xb=exp(logRxXB)
predict double resid, residual
egen Dsmear=mean(exp(resid))

gen correctedrxexp=probanyrx*xb*Dsmear

First of all, this is my first time dealing with smearing.  Is this the
right approach? Second I want to bootstrap this estimation in order to
get the estimates of
the std error for the correctedrxexp.  Is there any easy way of
bootstrapping this?

Best

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index