Learn R Programming

bnstruct (version 1.0.15)

sample.row: sample a row vector of values for a network.

Description

sample a row vector of values for a network.

Usage

sample.row(x, mar = 0)

# S4 method for BN sample.row(x, mar = 0)

Value

a vector of values.

Arguments

x

a BN or InferenceEngine object.

mar

fraction [0,1] of missing values in the sampled vector (missing at random), default value is 0 (no missing values).