fit2stats | R Documentation |
Summarize statistics with a model
fit2stats(fit, method = "default", digits = 2, mode = 1)
fit |
An object of class lm or glm or coxph or survreg |
method |
character choices are one of the c("likelihood","wald") |
digits |
integer indicating the number of decimal places |
mode |
integer |
An object of class "data.frame"
library(survival)
data(cancer)
fit=glm(status~rx+sex+age+obstruct+nodes,data=colon,family="binomial")
fit2stats(fit)
fit=lm(mpg~wt*hp+am,data=mtcars)
fit2stats(fit)
fit=survreg(Surv(time,status)~rx+sex+age+obstruct+nodes,data=colon)
fit2stats(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.