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

st: RE: predict with if and option

From   "Nick Cox" <>
To   <>
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-. 


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:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index