whiten {cytominer} | R Documentation |
whiten
transforms specified observation variables by estimating a whitening transformation on a sample and applying it to the population.
whiten(population, variables, sample, regularization_param = 1)
population |
tbl with grouping (metadata) and observation variables. |
variables |
character vector specifying observation variables. |
sample |
tbl containing sample that is used by the method to estimate whitening parameters. |
regularization_param |
optional parameter used in whitening to offset eigenvalues to avoid division by zero. |
transformed data of the same class as population
.
population <- tibble::tibble(
Metadata_Well = c("A01", "A02", "B01", "B02"),
Intensity_DNA = c(8, 20, 12, 32),
Texture_DNA = c(5, 2, 43, 13)
)
variables <- c("Intensity_DNA", "Texture_DNA")
whiten(population, variables, population, 0.01)