Skip to content

equivalent to SAS genmod code in R?

2 messages · Nicole Schneider, Peter Dalgaard

#
Nicole Schneider wrote:
Something like

glm(bs/occupancy ~ distcrop*flh+distcrop,
     family=binomial(logit), weights=occupancy)

where flh needs to be a factor.

You do need to read up on the details of glm(), model formulas and such, 
though.