Skip to content
Prev 6048 / 20628 Next

bivariate logistic/probit with hierarchical structure

Hi David,

Yes, I see, it can be done that way, but care has to be taken. In your  
example the observation-level correlation is actually negative which  
means the group variance gets set to zero. You could reverse the  
scoring for one of the responses though:

sanction2$response2<-sanction2$response

sanction2$response2[which(sanction2$type=="export")]<-as.numeric(sanction2$response2[which(sanction2$type=="export")]==0)

m2<-lmer(response2 ~ type + type:coop + type:cost + type:target +  
(1|group), data=sanction2, family=binomial())

which gives a positive estimate of the group variance (i.e. a negative  
observation-level correlation).

Cheers,

Jarrod





Quoting David Duffy <davidD at qimr.edu.au> on Thu, 12 May 2011 08:48:52  
+1000 (EST):