[R] GLM with nested factors, covariates and binomial error distribution

From: Florian Menzel <angiopteris_at_yahoo.com>
Date: Wed, 23 May 2007 23:59:16 -0700 (PDT)

  Dear R experts,
  I want to create a GLM with nested factors and binomial error distribution.   I have five independent variables, three categorial and two continuous ones.   The thing is that one of the categorial factors is nested within the other, i.e.   only the factor combinations (with 10 replicates per factor combination) exist:    Fac1 Fac2

      A    g    
      A    h
      A    i
      B    j
      B    k
      B    l
      B    m
      B    n
      B    o
  

  What I would like to know is:

  1. How can I include the hierarchical structure of Factors 1 and 2 in the model? (i.e. decide whether Factor 2 has more explanatory power than Factor 1 alone)
  2. Is the unbalanced design a problem in this case?
  3. How can I include two continuous independent variables in the model? I am actually quite sure that they don't play a role but need to be sure.

  Thanks a lot!
    Florian Menzel  


        [[alternative HTML version deleted]]



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 May 2007 - 07:05:46 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 May 2007 - 07:31:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.