Displaying 1 result from an estimated 1 matches for "glmf".
Did you mean:
glm
2011 Jun 14
0
Analyzing three-way contingency tables with many zero cells
...# Import data
COR<-read.table('Independence of traits.csv',header=T,sep=',',strip.white=T)
# Transform data into an appropriate table form
COR.tab<-xtabs(Count~Segment+Body+Pattern,COR)
# To run G2 Log-linear model test, not sure if super appropriate as many
empty cells
COR.glmF <- glm(Count~Segment*Body*Pattern, family=poisson, COR)
anova(COR.glmF, test="Chisq")
Any advice would be greatly appreciated.
Many thanks in advance,
James Bull
(Monash University, Australia)