Professional Documents
Culture Documents
Y X 12
0.8 1
10
2.1 2
3.94 3 8
4.6 4 6
Y
5.1 5
4
6.5 6
6.9 7 2
8.2 8 0
0 2 4 6 8 10 12
9.3 9
X
10.1 10
OLS versus MLE Example
Here is the SAS code:
OLS fitting using PROC GLM:
proc glm data=data; Call the procedure for data set “data”
model y = x; Regression model: y = b0 + b1x
run;
proc genmod data=data; Call the procedure for data set “data”
model y = x / dist=normal link=identity; Model: y = b0 + b1x
run; Assume normally distributed errors
Use an identity link (the link function
describes the relationship between y
and the linear portion of the model)
OLS versus MLE Example
Output from PROC GLM Output from PROC GENMOD