flash_fill: Use a flash fit to fill in missing entries

View source: R/flash_fit_utils.R

flash_fillR Documentation

Use a flash fit to fill in missing entries

Description

Fills in missing entries of Y by using the relevant entries of the estimated LDF' from the flash fit.

Usage

flash_fill(data, f)

Arguments

data

An n by p matrix or a flash data object created using flash_set_data.

f

A fitted flash object obtained from running flash on data.

Value

A matrix with non-missing entries the same as Y, and missing entries imputed from the flash fit.


stephenslab/flashr2 documentation built on Feb. 6, 2024, 5:21 a.m.