Skip to content
Prev 9995 / 20628 Next

comparing results across software packages

Price, Emily <ep311508 at ...> writes:
covariance(unstructured) binomial(10)
data=lam_hlm, family="binomial", link="logit",corStruct="full")
Three comments here:

(1) I don't think a logit-offset is the way to add information about
the number of trials.  The standard R approach is to use

glmmadmb(formula=cbind(dv,trial-dv)~trt.f + classb.f + 
  (trt.f|id.f), 
 data=lam_hlm, family="binomial", link="logit",corStruct="full")

(2) There is a bug in the current (and previous!!) versions of glmmADMB,
which I haven't dealt with yet -- it doesn't really fit unstructured
variance-covariance matrices, it always defaults to diagonal
v-cov matrices.  You can wait a few days (I will bump this up the
priority list); in the meanwhile it might be worth comparing with
the diagonal covariance structure to see if you get the right
STATA/R comparison.

(3) lme4 should also be able to handle this model, either with


glmmadmb(cbind(dv,trial-dv)~trt.f + classb.f + 
  (trt.f|id.f), 
 data=lam_hlm, family=binomial(link="logit"))

(unstructured variance-covariance matrix is the default) or

glmmadmb(dv/trial~trt.f + classb.f + 
  (trt.f|id.f), weights=trial,
 data=lam_hlm, family=binomial(link="logit"))

(I think glmmML can also do this one).

  Ben Bolker