Each MFAIR object has a number of slots which store information. Key slots to access are listed below.
Source:R/mfairObject.R
MFAIR-class.RdEach MFAIR object has a number of slots which store information. Key slots to access are listed below.
Slots
YA matrix or Matrix::dgCMatrix. The main data matrix of N samples and M features.
XA data.frame. The auxiliary information data frame of N samples and C covariates.
Y_sparseLogical. Whether the main data matrix Y is stored in the sparse mode.
Y_centerLogical. Whether the main data matrix Y is centered.
Y_meanNumeric. Mean of the main data matrix Y if centered. Zero if not.
Y_missingLogical. Whether the main data matrix Y is partially observed.
n_obsinteger. Total number of observed entries in Y.
NAn integer. Number of rows (samples) of Y, also the number of rows (samples) of X.
MAn integer. Number of columns (features) of Y.
CAn integer. Number of columns (auxiliary covariates) of X.
K_maxAn integer. Please note that increasing K_max does not ensure that the actual K also increases since K_max is just an upper bound, and the model will automatically infer K below K_max under the default setting. If you want to fit the model with larger rank K, please set the
null_checkargument as FALSE, or make sure that K_max is large enough and thetol_snrargument in the fitting functionfitGreedy()is small enough simultaneously in the fitting functionfitGreedy().KAn integer. The inferred rank of Y.
ZA list of length K. Each element is a vector of length N, representing the posterior mean of one factor in the MFAI model.
a_sqA list of length K with each element representing the posterior variance of one factor in the MFAI model. For fully observed Y, all N samples of one specific factor share the same posterior variance, then each element is a numeric value. For Y with missing data, the samples have different posterior variances, then each element is a vector of length N.
WA list of length K. Each element is a vector of length M, representing the posterior mean of one loading in the MFAI model.
b_sqA list of length K with each element representing the posterior variance of one loading in the MFAI model. For fully observed Y, all M features of one specific loading share the same posterior variance, then each element is a numeric value. For Y with missing data, the features have different posterior variances, then each element is a vector of length M.
tauA list of length K. Each elements is a numeric value representing the precision parameter for the combination of each pair of factor and loading.
betaA list of length K. Each elements is a numeric value representing the precision parameter for each factor Z_k.
FXA list of length K. Each element is a vector of length N, representing the prior mean of one factor in the MFAI model.
tree_0A list of length K. Each element is a numeric value representing tree_0 in one factor, which is defined as the mean of mu vector.
tree_listsA list of length K, containing K fitted functions and each function is represented as a list of trees, i.e., the k-th list corresponds to function F_k(.) in the MFAI model.
initializationA list. Initialization of the fitted model.
learning_rateNumeric. The learning rate in the gradient boosting part.
tree_parametersA list of options that control details of the rpart algorithm.
projectCharacter. Name of the project (for record keeping).