dunifed: The unifed distribution

Description Usage Arguments Value References Examples

View source: R/dunifed.R

Description

Density, distribution function, quantile function and random generation for the unifed distribution.

Usage

1
2
3
4
5
6
7
8
9
dunifed(x, theta)

unifed.lcdf(x, theta)

punifed(q, theta)

qunifed(p, theta)

runifed(n, theta)

Arguments

x

A vector of quantiles. They must be numbers between 0 and 1.

theta

The value of the canonical parameter. It must be of length one.

q

A vector of quantiles.

p

A vector of probabilities.

n

number of observations

Value

dunifed gives the density function.

unifed.lcdf returns the log of the cumulative distribution function of the unifed.

punifed gives the distribution function.

qunifed gives the quantile function.

runifed generates random observations.

References

Quijano Xacur, O.A. The unifed distribution. J Stat Distrib App 6, 13 (2019). doi:10.1186/s40488-019-0102-6.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
dunifed( c(0.1,0.3,0.7), 10)


x <- c(0.3,0.6,0.9)
unifed.lcdf(x,5)


x <- c(0.1,0.4,0.7,1)
punifed(x,-5)


p <- 1:9/10
qunifed(p,5)


runifed(20,-3.3)

unifed documentation built on Jan. 31, 2022, 1:07 a.m.