moma_sflda creates an SFLDA R6 object and returns it.
moma_slda is a function for performing one-way sparse LDA.
moma_twslda is a function for performing two-way sparse LDA.
moma_flda is a function for performing one-way functional LDA.
moma_twflda is a function for performing two-way functional LDA.
moma_sflda(X, ..., Y_factor, center = TRUE, scale = FALSE, x_sparse = moma_empty(), y_sparse = moma_empty(), x_smooth = moma_smoothness(), y_smooth = moma_smoothness(), pg_settings = moma_pg_settings(), max_bic_iter = 5, rank = 1) moma_slda(X, ..., Y_factor, center = TRUE, scale = FALSE, x_sparse = moma_empty(), y_sparse = moma_empty(), pg_settings = moma_pg_settings(), max_bic_iter = 5, rank = 1) moma_twslda(X, ..., Y_factor, center = TRUE, scale = FALSE, x_sparse = moma_empty(), y_sparse = moma_empty(), pg_settings = moma_pg_settings(), max_bic_iter = 5, rank = 1) moma_flda(X, ..., Y_factor, center = TRUE, scale = FALSE, x_smooth = moma_smoothness(), y_smooth = moma_smoothness(), pg_settings = moma_pg_settings(), max_bic_iter = 5, rank = 1) moma_twflda(X, ..., Y_factor, center = TRUE, scale = FALSE, x_smooth = moma_smoothness(), y_smooth = moma_smoothness(), pg_settings = moma_pg_settings(), max_bic_iter = 5, rank = 1)
| X | A data matrix, each row representing a sample, and each column a feature. |
|---|---|
| ... | Force users to specify arguments by names. |
| Y_factor | A factor representing which group a sample belongs to. |
| center | A logical value indicating whether the variables should be shifted to be zero centered.
Defaults to |
| scale | A logical value indicating whether the variables should be scaled to have unit variance.
Defaults to |
| x_sparse | An object of class inheriting from " |
| y_sparse | An object of class inheriting from " |
| x_smooth | An object of class inheriting from " |
| y_smooth | An object of class inheriting from " |
| pg_settings | An object of class inheriting from " |
| max_bic_iter | A positive integer. Defaults to 5. The maximum number of iterations allowed in nested greedy BIC selection scheme. |
| rank | A positive integer. Defaults to 1. The maximal rank, i.e., maximal number of principal components to be used. |
moma_slda: a function for performing one-way sparse LDA
moma_twslda: a function for performing two-way sparse LDA
moma_flda: a function for performing one-way functional LDA
moma_twflda: a function for performing two-way functional LDA