[R] Trouble with glm() .... non-integer #successes in a binomial glm
Smith, Phil
pzs6 at CDC.GOV
Wed Apr 19 17:20:46 CEST 2006
Hi R-people:
When I use the command to fit a model with an intercept, only:
glm ( formula=haspdata ~ 1, data=dat, family=binomial, weights=
dat$hy.wgt.s, subset=(dat$haspdat0!=3) )
I get the message:
Warning message:
non-integer #successes in a binomial glm! in: eval(expr, envir, enclos)
Does anyone know what this means?? The data for this command is listed
below.
Thanks,
Phil Smith
CDC
dat.hy.wgts.s
Here is my data:
> table( dat$haspdata )
0 1
21890 9097
> is.integer( dat$haspdata )
[1] TRUE
dat$hy.wgt.s
> summary( dat$hy.wgt.s)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.003374 0.657700 0.874200 1.000000 1.204000 8.557000
dat$haspdat0
> table(dat$haspdat0)
1 2 3
21890 8989 108
> is.integer( dat$haspdat0 )
[1] TRUE
More information about the R-help
mailing list