rtppn {PSDistr}R Documentation

Two-Piece Power Normal Distribution

Description

Density, distribution function, quantile function and random generation for the two-piece power normal distribution with parameters teta, s1, s2 and c.

Usage

rtppn(n, teta, s1, s2, c)

Arguments

n

positive number of observations

teta

position parameter

s1

positive scale parameter

s2

positive scale parameter

c

shape parameter (c>=1)

Details

Probability density function see formula (4) in the article Cumulative distribution function see formula (5) Quantile functon see formula (10) Random number generator see formula (21)

Value

The function returns random generator values for the two-piece power normal distribution.

Author(s)

Piotr Sulewski, piotr.sulewski@upsl.edu.pl, Pomeranian UNiwersity in Slupsk.

References

Sulewski, P. (2021). Two-Piece Power Normal Distribution, Communications in Statistics - Theory and Method 50(11), 2619-2639.

Examples

dtppn(2,1,1,1,2)
ptppn(2,1,1,1,2)
qtppn(0.5,1,1,1,2)
rtppn(10,1,1,1,2)


[Package PSDistr version 0.0.1 Index]