Calculate_D0NormPaired
calculates the normalized day 0 titer paired with the titer with maximum normalized fold change
Calculate_D0NormPaired(dat, fcStdCols = grep("fc_std_norm", colnames(dat), value = TRUE))
dat | data frame containing |
---|---|
fcStdCols | column names containing the titer fold changes for each strain standardized across subjects |
a numeric vector containing the values from d0StdCols that correspond to the maximum over the strains of fcStdCols
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.
## First Example