Description Usage Format Examples
Conditional probability tables for the wet grass example.
1 |
An object of class list
of length 3.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.