Learn R Programming

SIM (version 1.42.0)

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

Description

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

Usage

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.

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.

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!

See Also

SIM, assemble.data, integrated.analysis

Examples

Run this code
#no examples yet!

Run the code above in your browser using DataLab