Description Usage Arguments Value Author(s) References See Also Examples
Simulate random data from a given Bayesian network.
1 2 3 4 |
x |
an object of class |
n |
a positive integer giving the number of observations to generate. |
data |
a data frame containing the data the Bayesian network was learned from. |
fit |
a character string, the label of the method used to fit the
parameters of the newtork. See |
... |
additional arguments for the parameter estimation prcoedure,
see again |
debug |
a boolean value. If |
A data frame with the same structure (column names and data types)
of the data
parameter (if x
is an object of class bn
)
or with the same structure as the data originally used to to fit the
parameters of the Bayesian network (if x
is an object of class
bn.fit
).
Marco Scutari
Korb K, Nicholson AE (2010). Bayesian Artificial Intelligence. Chapman & Hall/CRC, 2nd edition.
1 2 3 4 5 6 7 8 9 | ## Not run:
data(learning.test)
res = gs(learning.test)
res = set.arc(res, "A", "B")
par(mfrow = c(1,2))
plot(res)
sim = rbn(res, 500, learning.test)
plot(gs(sim))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.