Learn R Programming

MOM (version 0.1.0)

logarithmic_est: Method of Moments Estimation of Logarithmic distribution

Description

function to get the method of moment estimate(s) of logarithmic distribution

Usage

logarithmic_est(data, plot = TRUE, curvecol = "red", ...)

Value

the estimated parameters by the method of moments of the data assuming the underlying distribution is logarithmic distribution

Arguments

data

A numeric vector.

plot

logical which controls whether the barplot of the data along with the probability curve of the theoretical poisson distribution with the estimated parameters.

curvecol

color of the theoretical probability curve

...

additional plotting parameters

Examples

Run this code
require(actuar)
logarithmic_est(rlogarithmic(1000,prob=0.6))

Run the code above in your browser using DataLab