SummaryMarginals: Summary a continuous marginal distribution

Description Usage Arguments Value See Also Examples

Description

This function summary the marginal distributions of continuous variables by outputing the mean, standard deviation, and number of subpopulations

Usage

1
SummaryMarginals(marginals)

Arguments

marginals

the marginal distributions obtained from Marginals function

Value

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.

mean

the mean value of a Gaussian distribution.

sd

the standard deviation of a Gaussian distribution.

n

the number of Gaussian distributions in the mixture.

See Also

Marginals

Examples

1
2
3
4
5
6
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)

BayesNetBP documentation built on May 2, 2019, 3:43 p.m.