asia | R Documentation |
asia
datasetThe asia
dataset and named list of distribution to analyze asia dataset.
asia
dist.asia
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).
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.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.