addFitSummary: Add model summary to an object of class gaze

View source: R/addFitSummary.R

addFitSummaryR 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()

autoReg documentation built on Nov. 14, 2023, 9:07 a.m.