quanWbMix: Calculate the quantiles of a mixture of two Weibull...

Description Usage Arguments Value See Also Examples

View source: R/rv3.r

Description

This is a function based on the uniroot to calculate the quantiles of a Weibull mixture model.

Usage

1
quanWbMix(intProb, mixParm)

Arguments

intProb

A vector of the probability below the quantile of interest, e.g. 5%

mixParm

A two-by-three matrix describing the Weibull mixture. See simWbMix.

Value

A two-row matrix: the first row is intProb and the second row is the corresponding quantiles.

See Also

qweibull, simWbMix, emCenWbMix.T1, emCenWbMix.T2

Examples

1
2
3
mmix = rbind(c(0.7, 5, 7),c(0.3, 15, 6))
quanWbMix(c(0.1, 0.5, 0.7), mmix)
quanWbMix(0.1, mmix)

Example output

             [,1]     [,2]     [,3]
intProb  0.100000 0.500000 0.700000
quan.est 4.727191 6.115613 6.775107
             [,1]
intProb  0.100000
quan.est 4.727191

extWeibQuant documentation built on May 1, 2019, 10:31 p.m.