startberngamma: Rough parameter estimate for the Bernoulli-Gamma distribution

Description Usage Arguments Value Note Author(s) See Also Examples

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

1

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.

Note

In this package startberngamma is intended to be used in conjunction with fitQmapDIST (and mledist) with parameter distr="berngamma".

Author(s)

Lukas Gudmundsson

See Also

fitQmapDIST, berngamma, fitdist

Examples

1
2
3
gg <- rberngamma(n=300, prob=0.2, scale=1, shape=1)
startberngamma(gg)
mledist(gg,"berngamma",startberngamma(gg))


Search within the qmap package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.