S3 method for extended tidying of selected model outputs. Note
that the visR method retains the original nomenclature of the objects,
and adds the one of broom::tidy to ensure compatibility with tidy workflows.
The default method relies on broom::tidy
to return a tidied object
Value
Data frame containing all list elements of the S3 object as columns.
The column 'strata' is a factor to ensure that the strata are sorted
in agreement with the order in the survfit
object
Examples
## Extended tidying for a survfit object
surv_object <- visR::estimate_KM(data = adtte, strata = "TRTA")
tidied <- visR::tidyme(surv_object)
## Tidyme for non-included classes
data <- cars
lm_object <- stats::lm(data = cars, speed ~ dist)
lm_tidied <- visR::tidyme(lm_object)
#> tidyme S3 default method (broom::tidy) used.
lm_tidied
#> term estimate std.error statistic p.value
#> 1 (Intercept) 8.2839056 0.87438449 9.473985 1.440974e-12
#> 2 dist 0.1655676 0.01749448 9.463990 1.489836e-12