Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/impute.nas.by.surrounding.R
Replace an NA by the median of the surrounding features in the same sample.
1 2 | impute.nas.by.surrounding(dataset,
window.size = 5)
|
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. |
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!
A data.frame
is returned, containing the inserted “dataset” all NA
replaced with median of the window of
size “window.size” around the NA
.
Marten Boetzer, Melle Sieswerda, Renee X. de Menezes R.X.Menezes@lumc.nl
SIM, assemble.data, integrated.analysis
1 | #no examples yet!
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.