rmix: Random univariate FM-SMSN generator
Description
Random generator of univariate FM-SMSN distributions.
Usage
rmix(n, pii, family, arg, cluster=FALSE)
Arguments
- n
number of observations
- pii
a vector of weights for the mixture (dimension of the number g of clusters). Must sum to one!
- family
distribution family to be used in fitting ("t", "Skew.t", "Skew.cn", "Skew.slash", "Skew.normal", "Normal")
- arg
a list with each entry containing a vector of size equal to the number of clusters of the necessary parameters from a family
- cluster
TRUE or FALSE if the true observations clusters must be returned.
Examples
Run this code ## see \code{\link{smsn.mix}}
Run the code above in your browser using DataLab