summarize_model {ushr}R Documentation

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


set.seed(1234567)

simulated_data <- simulate_data(nsubjects = 20)

model_output <- ushr(data = simulated_data)

summarize_model(model_output, data = simulated_data)


[Package ushr version 0.2.3 Index]