Learn R Programming

PSDistr (version 0.0.1)

rtppn: 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)

Value

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

Arguments

n

positive number of observations

teta

position parameter

s1

positive scale parameter

s2

positive scale parameter

c

shape parameter (c>=1)

Author

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

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)

References

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

Examples

Run this code
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)

Run the code above in your browser using DataLab