flash_add_fixed_factors | R Documentation |
Add a set of fixed factors to a flash fit object
flash_add_fixed_factors(data, FF, f_init = NULL, fixf = NULL,
init_fn = "udv_si", backfit = TRUE, ...)
data |
An n by p matrix or a flash data object created using
|
FF |
The factors, a p vector or p by K matrix. Missing values will be initialized by the mean of the relevant column (but will generally be re-estimated when refitting the model). |
f_init |
The flash object or flash fit object to which new
factors are to be added. If |
fixf |
A p by K matrix of of |
init_fn |
The function used to initialize factors. Options include:
A user-specified function can also be used. This function should
take parameters |
backfit |
If |
... |
Additional parameters to be passed to |
A flash object, with factors initialized from FF
,
and corresponding loadings initialized to zero.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.