dq {cdfquantreg} | R Documentation |
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)
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. |
Value
dq
gives the density, rq
generates random variates, qq
gives the quantile function, and pq
gives the cumulative density of specified distribution.
Examples
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')
[Package cdfquantreg version 1.3.1-2 Index]