addFitSummary {autoReg}R Documentation

Add model summary to an object of class gaze

Description

Add model summary to an object of class gaze

Usage

addFitSummary(df, fit, statsname = "")

Arguments

df

An object of class "gaze" or "autoReg"

fit

An object of class "glm" or "lm" or "crr"

statsname

character Name of statistics

Value

addFitSummary returns an object of gaze or autoReg - the same class as df

Examples

require(survival)
require(dplyr)
data(cancer,package="survival")
fit=coxph(Surv(time,status)~rx+age+sex+nodes+obstruct+perfor,data=colon)
df=autoReg(fit,uni=FALSE)
final=fit2final(fit)
df %>% addFitSummary(final,statsname="HR (final)") %>% myft()

[Package autoReg version 0.3.3 Index]