grass: Wet grass example

Description Usage Format Examples

Description

Conditional probability tables for the wet grass example.

Usage

1

Format

An object of class list of length 3.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 'data' generated with the following code fragment
yn <- c("yes", "no")
p.R    <- cptable(~R, values=c(.2, .8), levels=yn)
p.S_R  <- cptable(~S:R, values=c(.01, .99, .4, .6), levels=yn)
p.G_SR <- cptable(~G:S:R, values=c(.99, .01, .8, .2, .9, .1, 0, 1), levels=yn)

grain(compileCPT(p.R, p.S_R, p.G_SR))

# 'data' generated from
# grass_cpt <- list(p.R, p.S_R, p.G_SR)

data(grass_cpt)

DataSciBurgoon/gRain documentation built on March 25, 2020, 12:02 a.m.