Skip to contents

Skew Normal Cumulative Distribution Function

Usage

prob_skewnorm(x, location = 0, scale = 1, shape = 0, ..., mean, sd)

Arguments

x

A numeric vector of quantiles.

location

A numeric vector of the location parameter.

scale

A non-negative numeric vector of the scale parameter.

shape

A numeric vector of shape. Negative values result in leftward skew, while positive values result in rightward skew.

...

Unused.

mean

[Deprecated] A numeric vector of the location parameter. Described as "a numeric vector of the means" prior to to v. 0.10.1. Will be removed in a future version.

sd

[Deprecated] A non-negative numeric vector of the scale parameter. Described as "a non-negative numeric vector of the standard deviations" prior to v. 0.10.1. Will be removed in a future version.

Value

An numeric vector of the corresponding probabilities.

Examples

prob_skewnorm(c(-2:2))
#> [1] 0.02275013 0.15865525 0.50000000 0.84134475 0.97724987
prob_skewnorm(c(-2:2), shape = -2)
#> [1] 0.04549995 0.31559163 0.85241638 0.99828112 0.99999969
prob_skewnorm(c(-2:2), shape = 2)
#> [1] 3.143618e-07 1.718880e-03 1.475836e-01 6.844084e-01 9.545001e-01