qmap (version 1.0-4)

startberngamma: Rough parameter estimate for the Bernoulli-Gamma distribution

Description

Estimates rough starting values for the Bernoulli-Gamma distribution using the method of moments for the shape and the scale parameters. The probability of non-zero events is estimated as the fraction of values that are larger than zero.

Usage

startberngamma(x)

Arguments

x
numeric vector.

Value

A list containing:
prob
probability of non-zero event.
scale
scale parameter of the gamma distribution.
shape
shape parameter of the gamma distribution.

See Also

fitQmapDIST, berngamma, fitdist

Examples

Run this code
gg <- rberngamma(n=300, prob=0.2, scale=1, shape=1)
startberngamma(gg)
mledist(gg,"berngamma",startberngamma(gg))

Run the code above in your browser using DataLab