Re: [R] how to fit a weighted logistic regression?

2004-12-15 Thread Frank E Harrell Jr
Kerry Bush wrote: I tried lrm in library(Design) but there is always some error message. Is this function really doing the weighted logistic regression as maximizing the following likelihood: \sum w_i*(y_i*\beta*x_i-log(1+exp(\beta*x_i))) Does anybody know a better way to fit this kind of model in

Re: [R] how to fit a weighted logistic regression?

2004-12-15 Thread Rolf Turner
I was going to say ``Why not just use glm()?'', but when I tried the example given in the original message I got a different but similarly nervous-making warning: Warning in eval(expr, envir, enclos) : non-integer #successes in a binomial glm! Looking into the code I found that