













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














The regress command is used to run ‘Simple as well asMultiple regression’. regress depvar [indepvars] [if] [in] [weight] [, options] The mostly used options are given below:
noconstantvcerobusthc2hc3level(#)beta^
(gives standardized beta.)
Try other options in the dialogue as well.
the
‘ predicted/estimated’
values
,^ simply
use
the
‘predict command’.
predict newvar
Here ‘newvar’ is the name of new variable which storespredicted/estimate/Y-hat values.Suppose we want to save the ‘predicted values’ in variable‘estprice’.Then the command is:
predict estprice
10
15,000 10,000 5,000 0 0
20
40
60
80
sno Price Fitted values
Docsity.com
11
predict resids, residuals This will generate a new variable with the name resids whichcontains residuals.Use the list command to list residuals.
13
‘price’
as
the
Dependent variable.Select ‘mpg’ & ‘weight’ asthe independent variables.Click submit.
14
16
With the regression output in the Results window,We would like to test several hypotheses.To test whether a
weight
contributes as much as
foreign
to the
price,Type:
test weight = foreign
17
To test whether the variables “weight” and “foreign” are jointlysignificant in our model,Type:
test weight foreign
19
The result is given below:
20
Try the command.
ttest mpg = weight