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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: bys var: regression and predict??


From   D-Ta <altruist81@gmx.de>
To   statalist@hsphsun2.harvard.edu
Subject   st: bys var: regression and predict??
Date   Mon, 04 Apr 2011 11:42:39 +0200

Dear Stata-Users,
I would like to estimate a model on sub-sets of data using

bys splitting_var: regress y x1 x2 x3

and then predict (and plot) y at different values of x1 while holding x2 and x3 constant at their mean values.

apparently -predict- does not work in the usual way after "bys splitting_var: regress"

Is there any convenient way to do this?

Best,

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