Add factors or loadings to f.
flash_add_lf(data, LL, FF, f_init = NULL, fixl = NULL, fixf = NULL)
data | A flash data object. |
---|---|
LL | The loadings, an n by K matrix. |
FF | The factors, a p by K matrix. |
f_init | A flash object to which new factors are to be added (if NULL then a new fit object is created). |
fixl | An n by K matrix of TRUE/FALSE values indicating which elements of LL should be considered fixed and not changed during updates. Useful for including a mean factor for example. |
fixf | A p by K matrix of TRUE/FALSE values; same as fixl but for factors FF. |
A flash fit object, with additional factors initialized using LL and FF.