Re: [R] Specifying Prior Weights in a GLM

2010-12-12 Thread Enrique Garcia
Hey Dennis, Thank you. This was helpful. It looks like the structure of my code was incorrect. I was using a variable containing proportions as my D.V. instead of using a two column vector. I re-ran the code using the following: Y<-(successes/trials) -Enrique -- View this message in cont

Re: [R] Specifying Prior Weights in a GLM

2010-12-11 Thread Dennis Murphy
Hi: Here's a simple example of its use using the data from Montgomery, Myers and Vining (2002), problem 4.7: ex4.7 <- structure(list(pressure = c(2500L, 2700L, 2900L, 3100L, 3300L, 3500L, 3700L, 3900L, 4100L, 4300L), nfast = c(50L, 70L, 100L, 60L, 40L, 85L, 90L, 50L, 80L, 65L), nfailures = c(10L,

[R] Specifying Prior Weights in a GLM

2010-12-11 Thread Enrique Garcia
Hello R folks, I have three questions. I am trying to run a logistic regression (binomial family) where the response variable is a proportion. According to R Documentation in "a binomial GLM prior weights are used to give the number of trials when the response is the proportion of successes." H