dist-asia: The 'asia' dataset

asiaR Documentation

The asia dataset

Description

The asia dataset and named list of distribution to analyze asia dataset.

Usage

asia
dist.asia

Format

  • asia: a dataframe with 500 observations and 8 variables. Each variable is encoded as a factor with levels "no" and "yes".

  • dist.asia: a named list giving the distribution for each node in the network (here "binomial" for all).

Details

The data is a synthetic dataset from Lauritzen and Spiegelhalter (1988) provided by Scutari (2010). Renamed for convenience, similar to the use in the package abn.

Examples

## Not run: 
## This data set was generated using the following code:
data(asia, package = 'bnlearn') # for the dataset

# Renaming columns of the dataset
colnames(asia) <- c("Asia", "Smoking", "Tuberculosis", "LungCancer",
  "Bronchitis", "Either", "XRay", "Dyspnea")

# Defining the distribution list
dist.asia <- list(Asia = "binomial", Smoking = "binomial",
    Tuberculosis = "binomial", LungCancer = "binomial",
    Bronchitis = "binomial", Either = "binomial",
    XRay = "binomial", Dyspnea = "binomial")

## End(Not run)

mcmcabn documentation built on Sept. 28, 2023, 5:08 p.m.