rpn: The PN distribution

Description Usage Arguments Details References Examples

View source: R/GerarPN.R

Description

Density, distribution function, quantile function and random generation for the PN distribution with power equal to alpha.

Usage

1
2
3
4
dpn(x, alpha)
ppn(q, alpha)
qpn(p, alpha)
rpn(n, alpha)

Arguments

x, q

vector of observations or quantiles.

p

vector of probabilities.

n

number of observations.

alpha

power parameter.

Details

The alpha parameter must be greater than 0 (alpha > 0).

References

Lehmann, EL. (1953). The power of rank tests. The Annals of Mathematical Statistics, 24, 23–43.

Durrans, SR. (1992). Distributions of fractional order statistics in hydrology. Water Resources Research, 28, 1649–1655.

Agamez-Montavo, G. (2017). Modelos de mistura finita usando a classe de distribuicoes alpha potencia. Thesis (Doctoral), University of Sao Paulo.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# Density

dpn(2,1)
dnorm(2)

# Distribution function

ppn(2,1)
pnorm(2)

# Quantile function

qpn(0.5,1)
qnorm(0.5)


# Random generation

alpha <- 0.5
n <- 10
rpn(n, alpha)

PowerNormal documentation built on July 25, 2017, 5:01 p.m.