summaryGLM | R Documentation |
Reporting OR from glm with binomial link and glm predictions
summaryGLM(object, id = NULL, fun = NULL, ...)
object |
glm output |
id |
possible id for cluster corrected standard errors |
fun |
possible function for non-standard predictions based on object |
... |
arguments of estimate of lava for example level=0.95 |
Thomas Scheike
data(sTRACE)
sTRACE$id <- sample(1:100,nrow(sTRACE),replace=TRUE)
model <- glm(I(status==9)~sex+factor(diabetes)+age,data=sTRACE,family=binomial)
summaryGLM(model)
summaryGLM(model,id=sTRACE$id)
nd <- data.frame(sex=c(0,1),age=67,diabetes=1)
predictGLM(model,nd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.