Calculate_padjMFC | R Documentation |
Calculate_padjMFC
calculates the paired, adjusted maximum fold change (padjMFC)
Calculate_padjMFC( dat, fcCol = "fc_norm_max_ivt", d0Col = "d0_norm_paired", discretize = c(0.2, 0.3), scaleResiduals = FALSE, responseLabels = paste0(c("low", "moderate", "high"), "Responder"), ... )
dat |
the data containing the columns |
fcCol |
character string specifying the name of the fold change column from |
d0Col |
character string specifying the name of the day 0 column from |
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%. |
scaleResiduals |
Logical. Should residuals be scaled inversely by the square of the confidence intervals from the linear model. |
responseLabels |
names for low, moderate and high responses |
... |
Additional arguments passed to |
Calculate the paired, adjusted maximum fold change (padjMFC) from
fc_norm_max_ivt and d0_norm_paired using linear regression to
remove the effect of baseline titers. Missing (NA
) values are handled
and any missing values in fcCol and d0Col will also be missing in the output.
A list with the first element named "linearModel" for the linear model and then "padjMFC" containing the continuous padjMFC metric and one additional element for each value of discretize giving the discrete labels.
Stefan Avey
lm
## First Example
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.