Simulate data from a mixture of two Weibull distributions

Description

Same as title.

Usage

1
simWbMix(n, mixParm)

Arguments

n

Sample size

mixParm

A two-by-three matrix describing the Weibull mixture

p, a_1, b_1;

1-p, a_2, b_2

Value

A vector of length n

See Also

rweibull, quanWbMix, emCenWbMix.T1, emCenWbMix.T2

Examples

1
2
3
4
mmix = rbind(c(0.7, 5, 7),c(0.3, 15, 6))
set.seed(1)
y <- sort(simWbMix(300, mmix)) #Generate the data
hist(y)