impute_random: Impute missing values.

Description Usage Arguments Value

View source: R/process_data.R

Description

This function imputes missing data with data points samples randomly from the non-missing entries. Returns the input data unchanged if all data are missing.

Usage

1

Arguments

mat

Matrix (with or without missing data)

Value

List with two slots:

imputed

Updated version of input matrix with NAs replaced

n

Number of data points which were replaced


cgeisenberger/crystalmeth documentation built on Aug. 28, 2020, 9:35 a.m.