impute_normal: Impute missing values by random numbers drawn from a normal...

View source: R/impute_normal.R

impute_normalR Documentation

Impute missing values by random numbers drawn from a normal distribution

Description

Impute missing values by random numbers drawn from a normal distribution that has a down-shifted mean and shrunken standard deviation from the sample distribution. This is meant to be similar to imputation in the Perseus software.

Usage

impute_normal(object, width = 0.3, downshift = 1.8, seed = 100)

Arguments

object

Data frame or matrix containing filtered and log-transformed data.

width

Scale factor for the standard deviation of imputed distribution relative to the sample standard deviation.

downshift

Down-shifted the mean of imputed distribution from the sample mean, in units of sample standard deviation.

seed

Random seed

Value

A matrix with imputed values


jdreyf/jdcbioinfo documentation built on April 15, 2024, 6:37 p.m.