View source: R/addFitSummary.R
addFitSummary | R Documentation |
Add model summary to an object of class gaze
addFitSummary(df, fit, statsname = "")
df |
An object of class "gaze" or "autoReg" |
fit |
An object of class "glm" or "lm" or "crr" |
statsname |
character Name of statistics |
addFitSummary returns an object of gaze
or autoReg
- the same class as df
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.