The marginal of a mixture is itself a mixture of the component marginals
with the same mixing weights:
\(p(x_I) = \sum_k w_k p_k(x_I)\).
# S3 method for class 'mixture'
marginal(x, indices)
Arguments
- x
A mixture object.
- indices
Integer vector of variable indices to keep.
Value
A mixture object with marginalized components.
Details
Requires all components to support marginal.