View source: R/F2_SummaryMarginal.R
| SummaryMarginals | R Documentation |
This function summary the marginal distributions of continuous variables by outputing the mean, standard deviation, and number of subpopulations
SummaryMarginals(marginals)
marginals |
the marginal distributions obtained from |
a data.frame object containing information about the marginal distributions for continuous variables.
The marginal distributions of continous variables in a CG-BN model are mixtures of Gaussian distributions.
Therefore, besides the mean and standard deviation, the object has an additional column to specify the number of Gaussian
mixtures.
meanthe mean value of a Gaussian distribution.
sdthe standard deviation of a Gaussian distribution.
nthe number of Gaussian distributions in the mixture.
Cowell, R. G. (2005). Local propagation in conditional Gaussian Bayesian networks.
Journal of Machine Learning Research, 6(Sep), 1517-1550.
Yu H, Moharil J, Blair RH (2020). BayesNetBP: An R Package for Probabilistic Reasoning in Bayesian
Networks. Journal of Statistical Software, 94(3), 1-31. <doi:10.18637/jss.v094.i03>.
Marginals
data(liver)
tree.init.p <- Initializer(dag=liver$dag, data=liver$data,
node.class=liver$node.class,
propagate = TRUE)
marg <- Marginals(tree.init.p, c("HDL", "Ppap2a", "Neu1"))
SummaryMarginals(marginals=marg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.