Learn R Programming

extWeibQuant (version 1.1)

simWbMix: Simulate data from a mixture of two Weibull distributions

Description

Same as title.

Usage

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

See Also

rweibull, quanWbMix, emCenWbMix.T1, emCenWbMix.T2

Examples

Run this code
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)

Run the code above in your browser using DataLab