summarize_model: Summarize model output

Description Usage Arguments Value Examples

View source: R/output_processing.R

Description

This function summarizes the output of model fitting..

Usage

1
summarize_model(model_output, data, stats = FALSE)

Arguments

model_output

output from model fitting using ushr().

data

dataframe of original data used for model fitting. Must include named 'id' column with subject identifiers.

stats

logical TRUE/FALSE: should the median and sd lifespans also be returned? Default is FALSE.

Value

a list containing (i) a summary of which subjects were successfully fit using the biphasic or single phase models, with their corresponding infected cell lifespan estimates ('summary'); (ii) if stats = TRUE: summary statistics for the estimated parameters from the biphasic model ('biphasicstats'); and (iii) if stats = TRUE: summary statistics for the estimated parameters from the single phase model ('singlestats').

Examples

1
2
3
4
5
6
7
set.seed(1234567)

simulated_data <- simulate_data(nsubjects = 20)

model_output <- ushr(data = simulated_data)

summarize_model(model_output, data = simulated_data)

ushr documentation built on April 22, 2020, 1:05 a.m.