Description Usage Arguments Details Value Note Author(s) Examples
View source: R/rriskDistributions_functions.R
get.unif.par
returns the parameters of a uniform distribution
where the p
th percentiles match with the quantiles q
.
1 |
p |
numeric, single value or vector of probabilities. |
q |
numeric, single value or vector of quantiles corresponding to p. |
plot |
logical, if |
scaleX |
numerical vector of the length 2 containing values (from the open interval (0, 1))
for scaling quantile-axis (relevant only if |
... |
further arguments passed to the functions |
The number of probabilities and the number of quantiles must be identical
and should be at least two. Using the default p
, the three corresponding
quantiles are the 2.5th percentile, the median and the 97.5th percentile,
respectively.
Parameters of the uniform distribution are estimated exactly.
The items of the probability vector p
should lie between 0 and 1.
Returns fitted parameters of a uniform distribution.
It should be noted that there might be deviations between the estimated
and the theoretical distribution parameters in certain circumstances. This is
because the estimation of the parameters is based on a numerical optimization
method and depends strongly on the initial values. In addition, one must always
keep in mind that a distribution for different combinations of parameters may
look very similar. Therefore, the optimization method cannot always find the
"right" distribution, but a "similar" one.
If the function terminates with the error massage "convergence error occurred or
specified tolerance not achieved", one may try to set the convergence tolerance
to a higher value. It is yet to be noted, that good till very good fits of parameters
could only be obtained for tolerance values that are smaller than 0.001.
Matthias Greiner matthias.greiner@bfr.bund.de (BfR),
Katharina Schueller schueller@stat-up.de (STAT-UP Statistical Consulting),
Natalia Belgorodski belgorodski@stat-up.de (STAT-UP Statistical Consulting)
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.