darctan {gendist} | R Documentation |
Probabilty density function of arc tan model.
Description
Computes pdf of the arc tan model.
Usage
darctan(x, alpha, spec, arg, log = FALSE)
Arguments
x |
scalar or vector of values to compute the pdf. |
alpha |
the value of |
spec |
a character string specifying the parent distribution (for example, "lnorm" if the parent distribution corresponds to the lognormal). |
arg |
list of arguments/parameters of the parent distribution. |
log |
logical; if |
Details
The pdf of arc tan model with parameter \alpha
has a general form of:
f(x) = \frac{1}{\arctan(\alpha)} \frac{\alpha g(x)}{1 + (\alpha (1-G(x)))^{2}}
for a\leq x\leq b
where a
and b
follow the support of g(x)
. \arctan
denote the inverse function of tangent. g(x)
and G(x)
are the pdf and cdf of parent distribution, respectively. Note also that \alpha>0
.
Value
An object of the same length as x
, giving the pdf values computed at x
.
Author(s)
Shaiful Anuar Abu Bakar
References
Abu Bakar, S. A., Nadarajah, S., Adzhar, Z. A. A. K., & Mohamed, I. (2016). gendist: An R package for generated probability distribution models. PloS one, 11(6).
Gomez-Deniz, E., & Calderin-Ojeda, E. Modelling insurance data with the pareto arctan distribution. ASTIN Bulletin, 1-22.
Examples
x=runif(10, min=0, max=1)
y=darctan(x, alpha=0.5, spec="lnorm", arg=list(meanlog=1,sdlog=2) )