[R] linear-by-linear association model in R?

2012-04-02 Thread Christofer Bogaso
Dear all, can somebody give me some pointer how I can fit a linear-by-linear association model (i.e. loglinear model for the ordinal variables) in R? A brief description can be found here 'https://onlinecourses.science.psu.edu/stat504/node/141'. Thanks for your help

Re: [R] linear-by-linear association model in R?

2012-04-02 Thread Michael Friendly
On 4/2/2012 3:34 AM, Christofer Bogaso wrote: Dear all, can somebody give me some pointer how I can fit a linear-by-linear association model (i.e. loglinear model for the ordinal variables) in R? A brief description can be found here 'https://onlinecourses.science.psu.edu/stat504/node/141'.

Re: [R] linear-by-linear association model in R?

2012-04-02 Thread Vito Muggeo (UniPa)
dear Christofer, Try the following d-expand.grid(a=1:3,b=1:4) d$freq-rpois(12,5) o-glm(freq~factor(a)+factor(b)+I(a*b), family=poisson, data=d) vito Il 02/04/2012 9.34, Christofer Bogaso ha scritto: Dear all, can somebody give me some pointer how I can fit a linear-by-linear association