mix_sigmas | R Documentation |
Extract Standard Deviations of Mixture Components
mix_sigmas(x)
x |
A mixture distributional object |
If a distributional object that is a mixture of two or more normal distributions is read in, the function will return a numeric object with the standard deviations of each normal component. If the distributional object is a mixture of two or more multivariate normal distributions, the function will return a list with the covariance matrices of each multivariate normal component.
numeric or list object
library(distributional)
mix_norm <- dist_mixture(comp1 = dist_normal(1, 10),
comp2 = dist_normal(1.5, 12),
weights = c(.5, .5))
mix_sigmas(mix_norm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.