ushr (version 0.1.0)

summarize_model: Summarize model output

Description

This function summarizes the output of model fitting..

Usage

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

Run this code
# NOT RUN {
set.seed(1234567)

simulated_data <- simulate_data(nsubjects = 20)

model_output <- ushr(data = simulated_data)

summarize_model(model_output, data = simulated_data)

# }

Run the code above in your browser using DataLab