Learn R Programming

cdfquantreg (version 1.3.1-2)

dq: The Family of Distributions

Description

Density function, distribution function, quantile function, and random generation of variates for a specified cdf-quantile distribution.

Usage

dq(x, mu, sigma, fd, sd)

rq(n, mu, sigma, fd, sd)

qq(p, mu, sigma, fd, sd)

pq(q, mu, sigma, fd, sd)

Value

dq gives the density, rq generates random variates, qq gives the quantile function, and pq gives the cumulative density of specified distribution.

Arguments

x

vector of quantiles.

mu

vector of means.

sigma

vector of standard deviations.

fd

A string that specifies the parent distribution.

sd

A string that specifies the sub-family distribution.

n

Number of random samples.

p

vector of probabilities.

q

vector of quantiles.

Examples

Run this code
x <- rq(5, mu = 0.5, sigma = 1, 't2','t2'); x

dq(x, mu = 0.5, sigma = 1, 't2','t2')

qtil <- pq(x, mu = 0.5, sigma = 1, 't2','t2');qtil

qq(qtil , mu = 0.5, sigma = 1, 't2','t2')

Run the code above in your browser using DataLab