Learn R Programming

bnlearn (version 3.1)

asia: Asia (synthetic) data set by Lauritzen and Spiegelhalter

Description

Small synthetic data set from Lauritzen and Spiegelhalter (1988) about lung diseases (tuberculosis, lung cancer or bronchitis) and visits to Asia.

Usage

data(asia)

Arguments

format

The asia data set contains the following variables:
  • D(dyspnoea), a two-level factor with levelsyesandno.
  • T(tuberculosis), a two-level factor with levelsyesandno.
  • L(lung cancer), a two-level factor with levelsyesandno.
  • B(bronchitis), a two-level factor with levelsyesandno.
  • A(visit to Asia), a two-level factor with levelsyesandno.
  • S(smoking), a two-level factor with levelsyesandno.
  • X(chest X-ray), a two-level factor with levelsyesandno.
  • E(tuberculosis versus lung cancer/bronchitis), a two-level factor with levelsyesandno.

source

Lauritzen S, Spiegelhalter D (1988). "Local Computation with Probabilities on Graphical Structures and their Application to Expert Systems (with discussion)". Journal of the Royal Statistical Society: Series B (Statistical Methodology), 50(2), 157-224.

Examples

Run this code
# load the data and build the correct network from the model string.
data(asia)
res = empty.graph(names(asia))
modelstring(res) = "[A][S][T|A][L|S][B|S][D|B:E][E|T:L][X|E]"
plot(res)

Run the code above in your browser using DataLab