Skip to content
Prev 16056 / 20628 Next

Continuous vs. categorical correlated group effects

summary(flor_data)

  species_id         binary_individual_response

  Length:29609       Min.   :0.00000
  Class :character   1st Qu.:0.00000
  Mode  :character   Median :0.00000
                     Mean   :0.06018
                     3rd Qu.:0.00000
                     Max.   :1.00000

   species_abund
   Min.   :  11.23
   1st Qu.:1996.23
   Median :2548.23
   Mean   :3438.20
   3rd Qu.:5310.23
   Max.   :6116.23


The following is also the case:

Won't run-->glmer(binary_indivdual_response ~ species_abund  
+(1|species_id),family=binomial(link='logit')

Runs-->glm(binary_individual_response ~ species_abund + species_id,  
family=binomial(link='logit')


Quoting Ben Bolker <bbolker at gmail.com>:
Andrea Pilar Drager
PhD. student
Ecology and Evolutionary Biology, Rice University