flash_set_data: Set flash data object

View source: R/flash_data.R

flash_set_dataR Documentation

Set flash data object

Description

Set up data for reading into flash.

Usage

flash_set_data(Y, S = NULL)

Arguments

Y

An n by p data matrix.

S

An n by p matrix of the standard errors of the observations in Y. (Can be a scalar if all standard errors are equal.) If S = NULL, then the standard errors will be estimated during fitting.

Details

Y can have missing data, but no column or row can be entirely missing. The flash data object contains flags for dealing with missing data and a (naively) imputed version of the original data matrix so that i) some of the initialization methods used by flash (e.g., svd) do not fail; ii) data$Y * data$missing is zero if the original data were missing.

Value

A flash data object.


stephenslab/flashr documentation built on Jan. 31, 2024, 2:07 a.m.