impute: Impute a 'BNDataset' raw data with missing values.

Description Usage Arguments Examples

Description

Impute a BNDataset raw data with missing values.

Usage

1
2
3
4
impute(object, k.impute = 10)

## S4 method for signature '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

1
2
3
4
5
## Not run: 
dataset <- BNDataset("file.data", "file.header")
dataset <- impute(dataset)

## End(Not run)

tavazzie/bnstructScore documentation built on Dec. 23, 2021, 7:47 a.m.