Learn R Programming

extras (version 0.7.3)

sextreme: Extreme Surprisal

Description

Calculates the surprisal (in bits) that a cumulative distribution function probability is at least that extreme. [Deprecated]

Usage

sextreme(x, directional = FALSE)

Value

A numeric vector of surprisal values.

Arguments

x

A numeric vector of values between 0 and 1.

directional

A flag specifying whether probabilities less than 0.5 should be returned as negative values.

See Also

Other residuals: pextreme()

Examples

Run this code
sextreme(seq(0.1, 0.9, by = 0.1))
sextreme(seq(0.1, 0.9, by = 0.1), directional = TRUE)

Run the code above in your browser using DataLab