simWbMix: Simulate data from a mixture of two Weibull distributions

Description Usage Arguments Value See Also Examples

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)


Search within the extWeibQuant package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.