Re: [R] Need advice on GLM

2012-02-27 Thread ilai
On Mon, Feb 27, 2012 at 1:44 AM, Christofer Bogaso wrote: >  Here I was expecting those 2 approaches should give exactly same result > (i.e. same estimates and same SE), which is not the case. Can somebody > point me what I am missing here? > The vector of weights as described in ?glm which from

[R] Need advice on GLM

2012-02-27 Thread Christofer Bogaso
Dear all, I was trying to fit a GLM on the following data (this data was taken from Agresti): Dat <- matrix(c(24, 1355, 35, 603, 21, 192, 30, 224), 4, byrow = TRUE) Here the 1st column denotes the success and the second column is for failure. We have 4 rows represeting the 4 states of some explan