Skip to contents

Create the MFAIR object with main data matrix and auxiliary information.

Usage

createMFAIR(
  Y,
  X,
  Y_sparse = FALSE,
  Y_center = TRUE,
  K_max = 1L,
  project = "MFAIR"
)

Arguments

Y

A matrix or Matrix::dgCMatrix. The main data matrix of N samples and M features.

X

A data.frame. The auxiliary information data frame of N samples and C covariates.

Y_sparse

Logical. Determines whether to use spase mode for Y.

Y_center

Logical. Determines whether centering is performed.

K_max

An integer. The maximum rank allowed in the model.

project

Character. Name of the project (for record keeping).

Value

Returns MFAIR object, with main data matrix and auxiliary information.