See
-help predict-
for a start, and try
sysuse auto
reg price mpg turn
predict yhat
tempvar t
ren mpg `t'
g mpg=`t'+10
predict yhat10
drop mpg
ren `t' mpg
g dy=yhat10-yhat
li price yh* dy in 1/10
On Fri, Sep 18, 2009 at 1:00 PM, Laura Platchkov <[email protected]> wrote:
> Dear all,
>
> I have a cross sectional dataset, and use OLS. This is the model:
>
> ln(Y) = b1 + b2X + b3Z + e
>
> I would like to do some predictions to compare the change in Y when the X has, let say 10 units more:
>
> ln(Y)* = b1 + b2(X+10) + b3Z + e
>
> and compare the change:
>
> Y*- Y
>
> How can I do exactly? I have created a new dataset with the modified values of the regressors, but I don't know which command I should use to compute the value of the dependent ln(y*) with the new regressors.
*
* 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/