rmix {fitmix}R Documentation

The mixture random generation for the well-known models

Description

Random generation for the well-known mixture models with parameters weigth, shape and scale.

Usage

rmix(N, model, K, param)

Arguments

N

Number of inputs for the mixture random generation

model

Choice of one of the mixture models; gompertz, log-logistics, log-normal, and weibull.

K

Number of components

param

Vector of weight \omega, shape \alpha, and scale \beta parameters.

Value

Outputs of random generated vector lenght of N from the given mixture model.

Examples

N<-100
K<-2
weight<-c(0.5,0.5)
alpha<-c(0.5,1)
beta<-c(1,0.5)
param<-c(weight,alpha,beta)
rmix(N, "weibull", K, param)

[Package fitmix version 0.1.0 Index]