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]

Re: st: Heckprob - postestimation graphs


From   James McJoseph <[email protected]>
To   [email protected]
Subject   Re: st: Heckprob - postestimation graphs
Date   Wed, 1 Dec 2010 11:18:41 +0200

Much thanks for this, Maarten.  You sure understood my needs. Quick
confession "I am a newbie".  I did replicate this code with my data,
it gives me a straightline. Obviously it must be plotting the mean.
Plse make me understand this part of the code. How do I specify the
"variable that changes". Say, loginc is the one that "changes" ( and
it assumes its sample values). Plse help me further.

 // set remaining variables at their mean
 foreach var of varlist logptax loginc {
      sum `var' if e(sample), meanonly
       replace `var' = r(mean)
 }

*
*   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