Learn R Programming

bnpmr (version 1.2)

ptsp: Distribution function of the two-sided power distribution

Description

Distribution function of the two-sided power distribution

Usage

ptsp(x, m, n)

Arguments

x

Vector of numeric values in [0,1]

m,n

Distribution parameters, m is the mode of the distribution

References

van Dorp, R. and Kotz, S. (2002) The standard two-sided power distribution and its properties. The American Statistician, 56, 90-99

Examples

Run this code
# NOT RUN {
curve(ptsp(x, 0.5, 1), 0, 1)
curve(ptsp(x, 0.5, 2), 0, 1, add = TRUE)
curve(ptsp(x, 0.5, 5), 0, 1, add = TRUE)
curve(ptsp(x, 0.5, 10), 0, 1, add = TRUE)
# }

Run the code above in your browser using DataLab