ImputeNA {synergyfinder}R Documentation

Impute missing value with nearest values

Description

Function ImputeNA does missing value imputation by assigning the average of values in nearest 4 cells (top, bottom, left, right) to the NA cell. This pocess will be done repeadly until there is no missing values in the matrix.

Usage

ImputeNA(response.mat)

Arguments

response.mat

A matrix which has missing value.

Value

A matrix which is same as input matrix except the missing values are imputed.

Author(s)

Shuyu Zheng shuyu.zheng@helsinki.fi

Examples

data("mathews_screening_data")
data <- ReshapeData(mathews_screening_data)
response.mat <- data$dose.response.mats[[1]]
# introduce some NA values into matrix
response.mat[3:4, 3:5] <- NA
adjusted.mat <- ImputeNA(response.mat)

[Package synergyfinder version 1.10.2 Index]