Print

Print


 

Hi.  I’m fitting a hierarchical logistic regression model and am interested in calculating a variance partition coefficient to estimate the variance attributable to the higher-level term.  This is a straightforward matter when both the response and the higher-level term are linear, but I am uncertain how to address it in the case of a non-linear response. I understand there are approximations available, (e.g those described by Goldstein, Brown and Rasbash) but how would they be implemented in WinBUGS?   Is this an issue with which anyone is familiar? 

 

Also, I’ve come across references to the fact that placing normal priors with large variances on fixed effect terms in logistic models may lead to less than satisfactory results.  I’ve not had any obvious problems with this model, but is this most folks experience? Are there more appropriate priors than those I’ve chosen?

 

Many thanks

 

Charles DiMaggio

Columbia University, NY

 

model

# likelihood for observed data

{  for( i in 1 : Nobs ) {

   y[i] ~ dbern(p[i])

   logit(p[i]) <- alpha0 + alpha1 * exp[i] + alpha2 * sex[i] + alpha3*age[i]

   alpha4*race[i] + alpha5*married[i] + alpha6*educ[i]

   + b[cty[i]] # county term for random effects                  

}

for (j in 1:Ncty){

   b[j] ~ dnorm(0.0,tau.b)

                }

 

# priors for coefficients

for (k in 1:6) {alpha[k] ~ dnorm(0.0,1.0E-6)}

 

# prior for random effects term

tau.b ~ dgamma(0.001,0.001)

 

# variance random effect term

sigma2.b <- 1 / tau.b

                }

 

------------------------------------------------------------------- This list is for discussion of modelling issues and the BUGS software. For help with crashes and error messages, first mail [log in to unmask] To mail the BUGS list, mail to [log in to unmask] Before mailing, please check the archive at www.jiscmail.ac.uk/lists/bugs.html Please do not mail attachments to the list. To leave the BUGS list, send LEAVE BUGS to [log in to unmask] If this fails, mail [log in to unmask], NOT the whole list