Learn R Programming

bnlearn (version 4.6.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
# NOT RUN {
# load the data.
data(asia)
# create and plot the network structure.
dag = model2network("[A][S][T|A][L|S][B|S][D|B:E][E|T:L][X|E]")
# }
# NOT RUN {
graphviz.plot(dag)
# }

Run the code above in your browser using DataLab