View source: R/princomp_coda.R
Principal Components Analysis (PCA) of compositional data after applying log-ratio transformation.
1 2 | princomp_coda(dt, transformation_method = "ILR", method = "robust",
init_seed = 0, samples = 100, alr_base = 1)
|
dt |
Data frame containing compositional data |
transformation_method |
Character, the log-ratio transformation to be applied. "ALR" -> additive log-ratio, "CLR" -> centered log-ratio, "ILR" -> isometric log-ratio. Additionally, accepts "log" for applying logarithmic transformation and "std" for standardization (scaled and centred). |
method |
Character, "standard" for standard PCA, "robust" for robust PCA. |
init_seed |
Numeric, the seed for the random number generator used in
|
samples |
Numeric, the number of iterations applying to samples in
|
alr_base |
Character/Numeric, the name/index of the variable to be used as divisor in additional log-ratio transformation. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.