Documente Academic
Documente Profesional
Documente Cultură
PRACTICA DIRIGIDA N 1
Se pide:
Estimar el modelo lineal por MCO y MV:
Yi 0 1 X 1i 1 X 2i i
a. Solver
b. Stata (comando regre y en el ambiente mata)
c. E-Views (ventana program con el comando LS)
d. SPSS
1. E-Views
File \ New\Program
open "h:\datos1.wf1"
LS y=c(1)+c(2)*x1+c(3)*x2
''''Para graficar""""""
scat x1 y
2. Stata
3. SPSS
Archivo\Nuevo\Sintaxis
GET
FILE='H:\datos.sav'.
REGRESSION
/DEPENDENT y
/METHOD=ENTER x1 x2
DESCRIPTIVES VARIABLES=y x1 x2
/STATISTICS=MEAN STDDEV VARIANCE RANGE MIN MAX KURTOSIS SKEWNESS.
GRAPH
/SCATTERPLOT(BIVAR)=x1 WITH y
/MISSING=LISTWISE.
------------------------------------------------------------------------------
y | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
x1 | .0248607 .0160688 1.55 0.166 -.0131359 .0628573
x2 | -.0445007 .0147631 -3.01 0.020 -.0794099 -.0095916
_cons | 4.436842 1.479147 3.00 0.020 .9392158 7.934467
------------------------------------------------------------------------------
Dependent Variable: Y
Method: Least Squares
Date: 10/01/15 Time: 13:28
Sample: 1 10
Included observations: 10
Y=C(1)+C(2)*X1+C(3)*X2