Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: predict with if and option


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: predict with if and option
Date   Mon, 11 Feb 2008 21:35:53 -0000

This worked for me. 

sysuse auto
regress mpg weight
predict foobar if rep78 < 3, stdp

I guess that you are doing something different that you are not 
telling us, e.g. using a command other than -regress-. 

Nick 
n.j.cox@durham.ac.uk 

William Bishop

I would like to run predict with the IF condition after a regression,
using the stdp option at the same time but am getting the error
"option stdp not allowed"

predict temp if id=="`i'"&n==`t', stdp

seems pretty basic.  what am I missing?  maybe I misunderstood the
documentation on predict, but I thought this was doable.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index