Stats_fits: Summary statistics for the cohort's fits.

View source: R/stats_functions.R

Stats_fitsR Documentation

Summary statistics for the cohort's fits.

Description

Returns a tibble that extends the result of Stats_trees with information about the fit models. Compared to summaries returns by other Stats_* functions, the information from this one is precomputed.

Usage

Stats_fits(x, patients = x$patients)

Arguments

x

A REVOLVER cohort where fits have been computed.

patients

The patients for which the summaries are required.

Value

A tibble with the fits stastics.

See Also

Other Summary statistics: DET_index(), Stats_cohort(), Stats_drivers(), Stats_trees(), Stats()

Examples

# Data released in the 'evoverse.datasets'
data('TRACERx_NEJM_2017_REVOLVER', package = 'evoverse.datasets')

# Get the stats for all patients
Stats_fits(TRACERx_NEJM_2017_REVOLVER)

# And subset the patients
Stats_fits(TRACERx_NEJM_2017_REVOLVER, patients = c('CRUK0001', 'CRUK0002'))

caravagn/revolver documentation built on May 21, 2022, 5:48 p.m.