Re: [R] glm - change offset to avoid NA?

2013-07-16 Thread David Winsemius
On Jul 16, 2013, at 8:52 AM, Hermann Norpois wrote: > I did not think of something like "try". I thouht that there should always > be a value if I do a logistic regression but sometimes the values are far > from being meaningful. So there is a cut-off. That seems implausilbe. I think you are jus

Re: [R] glm - change offset to avoid NA?

2013-07-16 Thread Hermann Norpois
I did not think of something like "try". I thouht that there should always be a value if I do a logistic regression but sometimes the values are far from being meaningful. So there is a cut-off. My plan was to change the cut-off. Thanks Johannes 2013/7/15 Bert Gunter > I think what you want is

Re: [R] glm - change offset to avoid NA?

2013-07-15 Thread Bert Gunter
I think what you want is ?try ##or ?tryCatch ## The second is more flexible but slightly more complicated. to trap the error and perhaps refit the model without interaction? Cheers, Bert On Mon, Jul 15, 2013 at 10:45 AM, Hermann Norpois wrote: > Hello, > > I use glm within a function testing

[R] glm - change offset to avoid NA?

2013-07-15 Thread Hermann Norpois
Hello, I use glm within a function testing for the appearence of the coexistence of (minor allels in a subset of) snps. And then I extract the Pr(>|z|)-value for the interaction. Principally it works but sometimes the function stops because this "value for the interaction" is NA. For instance, t