Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

configs

Construct configurations of discrete variables


Description

Create configurations of discrete variables, which can be used in modelling conditional probability tables.

Usage

configs(data, all = TRUE)

Arguments

data

a data frame containing factor columns.

all

a boolean value. If TRUE all configuration are included as levels in the return value; otherwise only configurations which are actually observed are considered.

Value

A factor with one element for each row of data, and levels as specified by all.

Author(s)

Marco Scutari

Examples

data(learning.test)
configs(learning.test, all = TRUE)
configs(learning.test, all = FALSE)

bnlearn

Bayesian Network Structure Learning, Parameter Learning and Inference

v4.6.1
GPL (>= 2)
Authors
Marco Scutari [aut, cre], Robert Ness [ctb]
Initial release
2020-09-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.