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
[email protected]
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/