Displaying 1 result from an estimated 1 matches for "gls4".
Did you mean:
gls
2006 Mar 16
2
DIfference between weights options in lm GLm and gls.
...least squares fit by REML
Model: y ~ x
Data: NULL
Log-restricted-likelihood: -3737.392
Coefficients:
(Intercept) x
0.03104214 7.31032540
Variance function:
Structure: fixed weights
Formula: ~W
Degrees of freedom: 1243 total; 1241 residual
Residual standard error: 4.004827
> gls4
Generalized least squares fit by REML
Model: ys ~ Xs - 1
Data: NULL
Log-restricted-likelihood: -5500.311
Coefficients:
Xs Xsx
2.687205 6.527893
Degrees of freedom: 1243 total; 1241 residual
Residual standard error: 20.20705
We can see the relation between glm and gls with weight...