Learn R Programming

bnlearn (version 4.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 levels yes and no.
  • T (tuberculosis), a two-level factor with levels yes and no.
  • L (lung cancer), a two-level factor with levels yes and no.
  • B (bronchitis), a two-level factor with levels yes and no.
  • A (visit to Asia), a two-level factor with levels yes and no.
  • S (smoking), a two-level factor with levels yes and no.
  • X (chest X-ray), a two-level factor with levels yes and no.
  • E (tuberculosis versus lung cancer/bronchitis), a two-level factor with levels yes and no.

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