powered by
Sampling from the joint distribution of all applicable nodes in the Bayesian network.
Sampler(tree, n)
a '>ClusterTree object
'>ClusterTree
a integer number of observations to generate
integer
a dataframe of generated data
dataframe
Cowell, R. G. (2005). Local propagation in conditional Gaussian Bayesian networks. Journal of Machine Learning Research, 6(Sep), 1517-1550.
# NOT RUN { data(toytree) Sampler(tree = toytree, n = 10) # }
Run the code above in your browser using DataLab