View source: R/flash_fit_utils.R
flash_zero_out_factor | R Documentation |
The factor and loadings of the kth factor of f
are made to be zero (except for elements of the factor/loading that
are designated to be fixed). This effectively reduces the rank by 1,
but the zero factor/loading is retained in f
so that
the number and indexing of factor/loading matrices in f
remain the same.
flash_zero_out_factor(data, f_init, k)
data |
An n by p matrix or a flash data object created using
|
f_init |
The flash object or flash fit object to which new
factors are to be added. If |
k |
The index of the factor/loading pair to zero out. |
The flash object with the kth factor/loading zeroed out.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.