Add a set of fixed factors to a flash fit object.

flash_add_fixed_f(data, FF, f_init = NULL, fixf = NULL)

Arguments

data

a flash data object

FF

The factors, a 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

A flash fit object to which factors are to be added (if NULL then a new fit object is created).

fixf

A p by K matrix of TRUE/FALSE values indicating which elements of FF should be considered fixed and not changed during updates. Default is to fix all non-missing values, so missing values will be updated when f is updated.

Value

A flash fit object, with factors initialized from FF, and corresponding loadings initialized to 0.