Learn R Programming

bnstruct (version 1.0.6)

impute: Impute a BNDataset raw data with missing values.

Description

Impute a BNDataset raw data with missing values.

Usage

impute(object, k.impute = 10)

# S4 method for BNDataset impute(object, k.impute = 10)

Arguments

object

the BNDataset object.

k.impute

number of neighbours to be used; for discrete variables we use mode, for continuous variables the median value is instead taken.

Examples

Run this code
# NOT RUN {
dataset <- BNDataset("file.data", "file.header")
dataset <- impute(dataset)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab