anova.survstan: anova method for survstan models

View source: R/anova.R

anova.survstanR Documentation

anova method for survstan models

Description

Compute analysis of variance (or deviance) tables for one or more fitted model objects.

Usage

## S3 method for class 'survstan'
anova(...)

Arguments

...

further arguments passed to or from other methods.

Value

the ANOVA table.

Examples


library(survstan)
fit1 <- aftreg(Surv(futime, fustat) ~ 1, data = ovarian, baseline = "weibull", init = 0)
fit2 <- aftreg(Surv(futime, fustat) ~ rx, data = ovarian, baseline = "weibull", init = 0)
fit3 <- aftreg(Surv(futime, fustat) ~ ecog.ps + rx, data = ovarian, baseline = "weibull", init = 0)
anova(fit1, fit2, fit3)



survstan documentation built on May 29, 2024, 8:41 a.m.