You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For any model, when I want to estimate the scale (apart from the sense in this example), it shows me 1, while I know, from other packages, that it should be different.
Please note, the link is incorrect ("identity") and the scale is 1. While it should be 1.11. I guess it's unnecessary rounded in the output. Below confirmed by gee::gee and geeM::geem
> summary(gee::gee(SucN ~ Time, family=binomial(link = logit), data=d, id=ID, corstr = "unstructured", scale.fix = F))
Beginning Cgee S-function, @(#) geeformula.q 4.13 98/01/27
running glm to get initial regression estimate
(Intercept) TimeM1 TimeM2 TimeM3
-2.20 1.35 2.60 3.04
GEE: GENERALIZED LINEAR MODELS FOR DEPENDENT DATA
gee S-function, version 4.13 modified 98/01/27 (1998)
Model:
Link: Logit
Variance to Mean Relation: Binomial
Correlation Structure: Unstructured
Call:
gee::gee(formula = SucN ~ Time, id = ID, data = d, family = binomial(link = logit),
corstr = "unstructured", scale.fix = F)
Summary of Residuals:
Min 1Q Median 3Q Max
-0.700 -0.300 -0.100 0.325 0.900
Coefficients:
Estimate Naive S.E. Naive z Robust S.E. Robust z
(Intercept) -2.20 1.11 -1.98 1.05 -2.08
TimeM1 1.35 0.97 1.39 0.92 1.47
TimeM2 2.60 1.13 2.30 1.08 2.42
TimeM3 3.04 1.61 1.89 1.53 2.00
Estimated Scale Parameter: 1.11
Number of Iterations: 1
Working Correlation
[,1] [,2] [,3] [,4]
[1,] 1.000 0.509 0.2722 -0.5092
[2,] 0.509 1.000 0.5345 -0.5238
[3,] 0.272 0.535 1.0000 -0.0891
[4,] -0.509 -0.524 -0.0891 1.0000
or
> summary(geeM::geem(SucN ~ Time, family=binomial(link = logit), data=d, id=ID, corstr = "unstructured", scale.fix = F))
Estimates Model SE Robust SE wald p
(Intercept) -2.20 1.111 1.05 -2.08 0.0371
TimeM1 1.35 0.727 0.92 1.47 0.1423
TimeM2 2.60 1.039 1.08 2.42 0.0155
TimeM3 3.04 1.732 1.53 2.00 0.0460
Working Correlation:
[,1] [,2] [,3] [,4]
[1,] 1.000 0.764 0.408 -0.764
[2,] 0.764 1.000 0.802 -0.786
[3,] 0.408 0.802 1.000 -0.134
[4,] -0.764 -0.786 -0.134 1.000
Correlation Structure: unstructured
Est. Scale Parameter: 1.11
Number of GEE iterations: 2
Number of Clusters: 10 Maximum Cluster Size: 4
Number of observations with nonzero weight: 40
The text was updated successfully, but these errors were encountered:
For the following data:
For any model, when I want to estimate the scale (apart from the sense in this example), it shows me 1, while I know, from other packages, that it should be different.
Please note, the link is incorrect ("identity") and the scale is 1. While it should be 1.11. I guess it's unnecessary rounded in the output. Below confirmed by gee::gee and geeM::geem
or
The text was updated successfully, but these errors were encountered: