Learn R Programming

mixsmsn (version 1.1-10)

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.

See Also

smsn.mix

Examples

Run this code
# NOT RUN {
 ## see \code{\link{smsn.mix}}
# }

Run the code above in your browser using DataLab