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
flexsurvregorflexsurvspline, representing a fitted survival model object.- ...
Not currently used.
Value
A one-row tibble containing columns:
NNumber of observations used in fittingeventsNumber of eventscensoredNumber of censored eventstriskTotal length of time-at-risk (i.e. follow-up)dfDegrees of freedom (i.e. number of estimated parameters)logLikLog-likelihoodAICAkaike's "An Information Criteria"BICBayesian Information Criteria
Examples
fitg <- flexsurvreg(formula = Surv(futime, fustat) ~ age, data = ovarian, dist = "gengamma")
glance(fitg)
#> # A tibble: 1 × 8
#> N events censored trisk df logLik AIC BIC
#> <int> <int> <int> <dbl> <int> <dbl> <dbl> <dbl>
#> 1 26 12 14 15588 4 -89.7 187. 192.