Calculate_D0NormPaired: Calculate_D0NormPaired

Calculate_D0NormPairedR Documentation

Calculate_D0NormPaired

Description

Calculate_D0NormPaired calculates the normalized day 0 titer paired with the titer with maximum normalized fold change

Usage

Calculate_D0NormPaired(
  dat,
  fcStdCols = grep("fc_std_norm", colnames(dat), value = TRUE)
)

Arguments

dat

data frame containing fcStdCols

fcStdCols

column names containing the titer fold changes for each strain standardized across subjects. Length must be > 1

Details

If there are multiple strains that have the maximal fold change, choose the day 0 titer that is higher since this will allow for a greater adjustment and better chance of being a high responder.

Column names containing the day 0 titers for each strain standardized across subjects are assumed to follow the same pattern as fcStdCols with "d0" replacing "fc" in the name.

Value

a numeric vector containing the values from d0StdCols that correspond to the maximum over the strains of fcStdCols

Author(s)

Stefan Avey

Examples

## First Example


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