elindley: Lindley Distribution Estimation

View source: R/elindley.R

Inferences Lindley DistributionR Documentation

Lindley Distribution Estimation

Description

Estimates parameters of a univariate Lindley Distribution with maximum likelihood.

Usage

elindley(data, plot.it = TRUE, empirical = FALSE, col.estimated = "orange",
         col.empirical = "navy", ...)

Arguments

data

vector containing the sample, or list obtained with rlindley.

plot.it

logical, TRUE to plot the histogram with estimated distribution curve.

empirical

logical, TRUE to add the empirical curve ("Kernel Density Estimation") in the plot.

col.estimated

a colour to be used in the curve of estimated density.

col.empirical

a colour to be used in the curve of empirical density.

...

further arguments and graphical parameters passed to hist.

Author(s)

CASTRO, M. O.; MONTALVO, G. S. A.

Examples

## Generate a sample.
data = rlindley(n = 1000, beta = 2)

## And now, estimate the parameters, using the 'data' list.
elindley(data)

## Not plotting the graphic.
elindley(data, plot.it = FALSE)

## Adding the empirical curve to the graphic.
elindley(data, empirical = TRUE)

## Changing the color of the curves.
elindley(data, empirical = TRUE, col.estimated = "pink", 
         col.empirical = "red3")

## Using "..."
elindley(data, empirical = TRUE, col.estimated = "pink", 
         col.empirical = "red3", breaks = 300)

matheuscastro43/finiteMix documentation built on March 30, 2022, 12:49 p.m.