Calculate differential proportionality measure, theta.
Used by propd
to build the @theta
slot. A numeric alpha
argument will trigger
the Box-Cox transformation.
calculateTheta(counts, group, alpha, lrv = NA, only = "all",
weighted = FALSE, weights = as.matrix(NA))
A data.frame or matrix. A "count matrix" with subjects as rows and features as columns.
A character vector. Group or sub-group memberships,
ordered according to the row names in counts
.
A double. See vignette for details. Leave missing to skip Box-Cox transformation.
A numeric vector. A vector of pre-computed log-ratio variances. Optional parameter.
A character string. The name of the theta
type to return if only calculating one theta type.
Used to make updateCutoffs
faster.
A boolean. Toggles whether to calculate
theta using limma::voom
weights.
A matrix. Pre-computed limma
-based
weights. Optional parameter.
A data.frame
of theta
values.