antspymm_simlr_update_residuals.Rd
This function updates residuals for SiMLR by applying different covariate transformations.
antspymm_simlr_update_residuals(
mats,
x,
covariate,
blaster2,
allnna,
n.comp,
opt = NULL
)
A list of matrices.
An index to select a matrix from the list.
A character string specifying the covariate transformation to apply.
A data frame containing additional covariate data.
A logical vector indicating non-missing data points.
An integer specifying the number of components.
A character string. If set to "opt", the function will print available covariate options.
The residual matrix after applying the specified covariate transformation. If `opt` is set to "opt", the function will print available covariate options and return NULL.
if (FALSE) { # \dontrun{
antspymm_simlr_update_residuals(mats, 1, "whiten", blaster2, allnna, 5)
antspymm_simlr_update_residuals(opt = "opt")
} # }