Description Usage Arguments Value Examples
View source: R/output_processing.R
This function summarizes the output of model fitting..
1 | summarize_model(model_output, data, stats = FALSE)
|
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. |
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').
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.