Re: [R] about the loglm and glm---Re:Re: Regression on stratified count data

2013-04-24 Thread meng
Understand. Many thanks for your detailed explaination. At 2013-04-24 22:22:55,"Achim Zeileis" wrote: >On Wed, 24 Apr 2013, meng wrote: > >> Hi,Achim: >> Can all the analysis you mentioned via loglm be performed via >> glm(...,family=poisson)? > >Yes. > >## transform table back to data.f

[R] about the loglm and glm---Re:Re: Regression on stratified count data

2013-04-24 Thread meng
Hi,Achim: Can all the analysis you mentioned via loglm be performed via glm(...,family=poisson)? Many thanks. At 2013-04-24 19:37:10,"Achim Zeileis" wrote: >On Wed, 24 Apr 2013, meng wrote: > >> Hi all: >> For stratified count data,how to perform regression analysis? >> >> My data:

Re: [R] about the loglm and glm---Re:Re: Regression on stratified count data

2013-04-24 Thread Achim Zeileis
On Wed, 24 Apr 2013, meng wrote: Hi,Achim: Can all the analysis you mentioned via loglm be performed via glm(...,family=poisson)? Yes. ## transform table back to data.frame df <- as.data.frame(tab) ## fit models: conditional independence, no-three way interaction, ## and saturated g1 <- glm(