Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

glance.flexsurvreg

Glance at a flexsurv model object


Description

Glance accepts a model object and returns a tibble with exactly one row of model summaries.

Usage

## S3 method for class 'flexsurvreg'
glance(x, ...)

Arguments

x

Output from flexsurvreg or flexsurvspline, representing a fitted survival model object.

...

Not currently used.

Value

A one-row tibble containing columns:

  • N Number of observations used in fitting

  • events Number of events

  • censored Number of censored events

  • trisk Total length of time-at-risk (i.e. follow-up)

  • df Degrees of freedom (i.e. number of estimated parameters)

  • logLik Log-likelihood

  • AIC Akaike's "An Information Criteria"

  • BIC Bayesian Information Criteria

Examples

fitg <- flexsurvreg(formula = Surv(futime, fustat) ~ age, data = ovarian, dist = "gengamma")
glance(fitg)

flexsurv

Flexible Parametric Survival and Multi-State Models

v2.0
GPL (>= 2)
Authors
Christopher Jackson [aut, cre], Paul Metcalfe [ctb], Jordan Amdahl [ctb], Matthew T. Warkentin [ctb], Kevin Kunzmann [ctb]
Initial release
2021-02-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.