Learn R Programming

qmap (version 1.0-4)

startbernexp: Rough parameter estimate for the Bernoulli-Exponential distribution

Description

Estimates rough starting values for the Bernoulli-Exponential distribution using the method of moments for the rate parameter. The probability of non-zero events is estimated as the fraction of values that are larger than zero.

Usage

startbernexp(x)

Arguments

x
numeric vector.

Value

A list containing:
prob
probability of non-zero event.
rate
rate parameter of the Exponential distribution.

See Also

fitQmapDIST, bernexp, fitdist

Examples

Run this code
gg <- rbernexp(n=300, prob=0.2, rate=1)
startbernexp(gg)
mledist(gg,"bernexp",startbernexp(gg))

Run the code above in your browser using DataLab