pnormweibull: Cumulative Distribution Function of a Gaussian Variable Plus...

View source: R/normexp.R

pnormweibullR Documentation

Cumulative Distribution Function of a Gaussian Variable Plus an Weibull Variable

Description

Cumulative Distribution Function of a Gaussian Variable Plus an Weibull Variable

Usage

pnormweibull(q, scale, shape, rho)

Examples

## Not run: 
n <- 1e6

pnormweibull(0.1, scale = 1/2, shape = 1, rho = 1.5)
pnormweibull(0.8, scale = 1/2, shape = 1, rho = 1.5)
mean(rnorm(n) + 1.5 * rweibull(n, scale = 1/2, shape = 1) <= 0.1)
mean(rnorm(n) + 1.5 * rweibull(n, scale = 1/2, shape = 1) <= 0.8)

pnormweibull(0.1, scale = 1/2, shape = 1, rho = -1.5)
pnormweibull(0.8, scale = 1/2, shape = 1, rho = -1.5)
mean(rnorm(n) - 1.5 * rweibull(n, scale = 1/2, shape = 1) <= 0.1)
mean(rnorm(n) - 1.5 * rweibull(n, scale = 1/2, shape = 1) <= 0.8)

pnormweibull(0.1, scale = 1/2, shape = 2, rho = -1.5)
pnormweibull(0.8, scale = 1/2, shape = 2, rho = -1.5)
mean(rnorm(n) - 1.5 * rweibull(n, scale = 1/2, shape = 2) <= 0.1)
mean(rnorm(n) - 1.5 * rweibull(n, scale = 1/2, shape = 2) <= 0.8)

## End(Not run)

BuyseTest documentation built on March 31, 2023, 6:55 p.m.