impute.nas.by.surrounding: Impute NA's in array-CGH data

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/impute.nas.by.surrounding.R

Description

Replace an NA by the median of the surrounding features in the same sample.

Usage

1
2
impute.nas.by.surrounding(dataset, 
                          window.size = 5)

Arguments

dataset

data.frame with the dataset to replace the NA's by the medians of the surrounding features.

window.size

numeric value, specifying of how many features around the NA the median should be taken.

Details

This function can be used when the dependent dataset in the integrated.analysis function is array-CGH data and contains probes that have an NA. To avoid loosing data by throwing away the probes with NA's, the impute.nas.by.surrounding function can be used which simply takes the median of the probes around an NA. The number of probes used for the imputatin is chosen by giving a value for window.size. This script takes quite long to run!

Value

A data.frame is returned, containing the inserted “dataset” all NA replaced with median of the window of size “window.size” around the NA.

Author(s)

Marten Boetzer, Melle Sieswerda, Renee X. de Menezes R.X.Menezes@lumc.nl

See Also

SIM, assemble.data, integrated.analysis

Examples

1
#no examples yet!

SIM documentation built on Nov. 8, 2020, 4:58 p.m.