decimate_row: Decimates a given row of a data matrix based on the patterns...

View source: R/decimate_row.R

decimate_rowR Documentation

Decimates a given row of a data matrix based on the patterns the data matrix was simulated from.

Description

Given a row vector, β, simulated from a ground-truth pattern matrix, P, decimate_row corrupts β to produce β', such that β' has every value missing besides exactly one random observation corresponding to each pattern in P (where the patterns are the rows of P).

Usage

decimate_row(row, pats)

Arguments

row

The row to be decimated.

pats

The ground truth patterns the row was simulated from.

Value

The decimated row.

See Also

decimate_mat


Columbia-PRIME/PCPhelpers documentation built on April 24, 2022, 7:57 p.m.