lin {modehunt} | R Documentation |
Perturbed Uniform Distribution
Description
Density function, distribution function, quantile function and
random generation for the perturbed uniform distribution having a linear increase of slope
on an interval
.
Usage
dlin(x, a, b, s)
plin(q, a, b, s)
qlin(p, a, b, s)
rlin(n, a, b, s)
Arguments
x , q |
Vector of quantiles. |
p |
Vector of probabilities. |
n |
Number of observations. |
a |
Left interval endpoint, real number in |
b |
Right interval endpoint, real number in |
s |
Slope parameter, real number such that |
Details
The what we call perturbed uniform distribution (PUD) with perturbation on an
interval with slope parameter
such that
has density function
distribution function
and quantile function
This function was used to carry out the simulations to compute the power curves given in Rufibach and Walther (2010).
Value
dlin
gives the values of the density function, plin
those of the distribution
function, and qlin
those of the quantile function of the PUD at and
,
respectively.
rlin
generates random numbers, returned as an ordered vector.
Author(s)
Kaspar Rufibach, kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch
Guenther Walther, gwalther@stanford.edu,
www-stat.stanford.edu/~gwalther
References
Rufibach, K. and Walther, G. (2010). A general criterion for multiscale inference. J. Comput. Graph. Statist., 19, 175–190.