delete_values: Delete values from a design matrix

Description Usage Arguments

View source: R/simulate.R

Description

delete_values returns the matrix x with a proportion of m values deleted.

Usage

1
delete_values(x, m, missingness = "mcar")

Arguments

x

Design matrix

m

proportion of values to be deleted

missingness

One of 'mcar', 'nmar' or 'blockwise'. For mcar the values are deleted uniformly at random. If nmar is supplied, the probability of deletion of a given value is set to be proportional to its absolute value. If blockwise is supplied, repeatedly values l ~ Pois(p / 20) and k ~ Exp(n/8) are drawn and a block of size l x k is deleted.


mlondschien/hdcd documentation built on Jan. 5, 2021, 11:26 p.m.