fit2stats {autoReg} | R Documentation |
Summarize statistics with a model
Description
Summarize statistics with a model
Usage
fit2stats(fit, method = "default", digits = 2, mode = 1)
Arguments
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 |
Value
An object of class "data.frame"
Examples
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)
[Package autoReg version 0.3.3 Index]