Glance accepts a model object and returns a tibble with exactly one row of model summaries.
# S3 method for flexsurvreg glance(x, ...)
| x | Output from |
|---|---|
| ... | Not currently used. |
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
fitg <- flexsurvreg(formula = Surv(futime, fustat) ~ age, data = ovarian, dist = "gengamma") glance(fitg)#> # A tibble: 1 x 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.