mask_MCAR: Mask data

View source: R/helper_mask.R

mask_MCARR Documentation

Mask data

Description

Masks mask_fraction entries of X completely at random

Usage

mask_MCAR(X, mask_fraction, seed = NULL, silence_rate = 0.01, mask_cols = NULL)

Arguments

X

data to be masked

mask_fraction

Fraction of observed entries to be masked

seed

Seed for mask

silence_rate

The random masking is done while ensuring there is no empty row, which may lead to smaller than specified mask_fraction. If the difference is more than silence_rate, a message will be printed

mask_cols

If not NULL, the masking only happens in columns mask_cols

Value

masked data


udellgroup/mixedgcImp documentation built on Jan. 25, 2023, 7:55 p.m.