Description Usage Arguments Value References Examples
View source: R/calc_mixmoments.R
This function uses the method of moments to calculate the expected mean, standard deviation, skewness,
standardized kurtosis, and standardized fifth and sixth cumulants for a continuous mixture variable based on the distributions
of its components. The result can be used as input to find_constants
or for comparison to a
simulated mixture variable from contmixvar1
, corrvar
, or
corrvar2
. See the Expected Cumulants and Correlations for Continuous Mixture Variables vignette
for equations of the cumulants.
1 2 3 |
mix_pis |
a vector of mixing probabilities that sum to 1 for the component distributions |
mix_mus |
a vector of means for the component distributions |
mix_sigmas |
a vector of standard deviations for the component distributions |
mix_skews |
a vector of skew values for the component distributions |
mix_skurts |
a vector of standardized kurtoses for the component distributions |
mix_fifths |
a vector of standardized fifth cumulants for the component distributions; keep NULL if using |
mix_sixths |
a vector of standardized sixth cumulants for the component distributions; keep NULL if using |
A vector of the mean, standard deviation, skewness, standardized kurtosis, and standardized fifth and sixth cumulants
Please see references for SimCorrMix
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.