dpowexp(y, m=0, s=1, f=1) ppowexp(q, m=0, s=1, f=1)
y
| vector of responses. |
q
| vector of quantiles. |
m
| vector of means. |
s
| vector of dispersion parameters. |
f
| vector of family parameters. |
m
, dispersion equal
to s
, and family parameter equal to f
.
dpowexp
gives the density, ppowexp
gives the distribution
function.
The power exponential distribution has density
f(y) = exp(-(abs(y-m)/sqrt(s))^(2 f)/2)/ (sqrt(s) Gamma(1+1/(2 f)) 2^(1+1/(2 f)))
where m is the mean of the distribution, s is the dispersion, and f is the family parameter. f=1 yields a normal distribution, f=0.5 a Laplace distribution, and f=Inf a uniform distribution.
dpowexp(5, 5, 1, 2) ppowexp(5, 5, 1, 2)