Description Usage Arguments Details Value See Also Examples
This is an interface to the package gRain. We supply a Bayesian Network, its parameters, and the raw data. An object of class 'grain' is returned. This object can be queried
1 | as.grain(x, net, dat)
|
x |
A list of multinomial parameters, in the form
output by |
net |
a Bayesian Network. An object of class 'bn' |
dat |
A data.frame with factors in columns. The columns should correspond to the nodes of net, and the parameters of x. |
Specifically, this function is a wrapper around
cptable
,
extractCPT
and
grain
.
An object of class "grain".
querygrain
for querying the result.
For queries involving conditioning, use
setFinding
before running
querygrain
. marginalGivenOthers
,
marginalGivenIntervention
,
queryFinding
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.