Description Usage Arguments Details Value
Estimates the marginal distribution of a univariate sample, either by MLE (if a parametric family is specified) or empirical distribution (edf, with kernel density pdf) otherwise.
1 2 3 4 5 6 7 8 9 |
x |
Vector representing the univariate sample drawn from the distribution to be estimated. |
dist.name |
String; name of the parametric family of distributions, if
you don't want the edf. Use R's naming conventions
for distributions ahead of the d/p/q/r. For example, the Normal
distribution would be |
ecdf.split |
Numeric; real number for which to fit the specified model for data above such number, and empirical distribution to be fit below. |
init.val |
If a parametric distribution is specified (through
|
in.range |
The same as the argument in |
soften.cdf |
Logical; should the cdf be modified so that it never returns the boundary cases 0 or 1? (uses 0.5/n or 1-0.5/n instead, where n is amount of data) |
eqf.type |
If the empirical quantile function is being estimated, this
argument specifies the type of quantile algorithm to use, as in the
|
Some noteworthy options for eqf.type
are: 1 = inverse
empirical cdf (default of marginal
); 7 = default of
quantile
, a continuous function.
If return.param = FALSE
(default), output is a list of
length three:
$cdf
: The estimated distribution function
$qf
: The estimated quantile function (inverse of the cdf estimate)
$pdf
: The estimated density function or mass function. Gives a kernel
density estimate if using the empirical distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.