Description Usage Arguments Details Value Author(s) References See Also Examples
Apply a user-specified function to the Bayesian network structures learned from bootstrap samples of the original data.
1 2 3 |
data |
a data frame containing the variables in the model. |
statistic |
a function or a character string (the name of a function) to be applied to each bootstrap replicate. |
R |
a positive integer, the number of bootstrap replicates. |
m |
a positive integer, the size of each bootstrap replicate. |
sim |
a character string indicating the type of simulation
required. Possible values are |
algorithm |
a character string, the learning algorithm to be
applied to the bootstrap replicates. Possible values are |
algorithm.args |
a list of extra arguments to be passed to the learning algorithm. |
statistic.args |
a list of extra arguments to be passed to
the function specified by |
cluster |
an optional cluster object from package snow.
See |
debug |
a boolean value. If |
The first argument of statistic
is the bn
object encoding
the network structure learned from the bootstrap sample; the arguments
specified in statistics.args
are extracted from the list and
passed to statitstics
as the 2nd, 3rd, etc. arguments.
A list containing the results of the calls to statistic
.
Marco Scutari
Friedman N, Goldszmidt M, Wyner A (1999). "Data Analysis with Bayesian Networks: A Bootstrap Approach". In "UAI '99: Proceedings of the 15th Annual Conference on Uncertainty in Artificial Intelligence", pp. 196-201. Morgan Kaufmann.
1 2 3 4 5 6 | ## Not run:
data(learning.test)
bn.boot(data = learning.test, R = 2, m = 500, algorithm = "gs",
statistic = arcs)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.