View source: R/Calculate_MFC.R
Calculate_MFC | R Documentation |
Calculate_MFC
calculates the (log-transformed) maximum fold change over all strains.
Calculate_MFC( dat_list, subjectCol = "SubjectID", discretize = c(0.2, 0.3), responseLabels = paste0(c("low", "moderate", "high"), "Responder") )
dat_list |
a named list like the one returned by |
subjectCol |
the name of the column specifying a subject ID. Default is "SubjectID". |
discretize |
a vector of quantiles in (0, 0.5] specifying where to make the cutoff for low, moderate and high responses. Default is 20% and 30%. |
responseLabels |
names for low, moderate and high responses |
A list with the following elements:
a named vector containing the continuous MFC endpoints
a named vector containing the discrete MFC endpoint with a cutoff at <X>
Other named vectors containing discrete MFC endpoints
A named list containing the MFC for each subject and any discretized metrics
Stefan Avey
## Prepare the data titer_list <- FormatTiters(Year2_Titers) Calculate_MFC(titer_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.