Calculate_MFC: Calculate MFC

View source: R/Calculate_MFC.R

Calculate_MFCR Documentation

Calculate MFC

Description

Calculate_MFC calculates the (log-transformed) maximum fold change over all strains.

Usage

Calculate_MFC(
  dat_list,
  subjectCol = "SubjectID",
  discretize = c(0.2, 0.3),
  responseLabels = paste0(c("low", "moderate", "high"), "Responder")
)

Arguments

dat_list

a named list like the one returned by FormatTiters.

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

Value

A list with the following elements:

MFC

a named vector containing the continuous MFC endpoints

MFC_d<X>

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

Author(s)

Stefan Avey

Examples

## Prepare the data
titer_list <- FormatTiters(Year2_Titers)

Calculate_MFC(titer_list)

stefanavey/titer documentation built on Jan. 27, 2023, 3:41 a.m.