View source: R/startberngamma.R
startberngamma | R Documentation |
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.
startberngamma(x)
x |
numeric vector. |
A list containing:
prob |
probability of non-zero event. |
scale |
scale parameter of the gamma distribution. |
shape |
shape parameter of the gamma distribution. |
In this package startberngamma
is intended to be used in
conjunction with fitQmapDIST
(and mledist
)
with parameter distr="berngamma"
.
Lukas Gudmundsson
fitQmapDIST
, berngamma
,
fitdist
gg <- rberngamma(n=300, prob=0.2, scale=1, shape=1)
startberngamma(gg)
mledist(gg,"berngamma",startberngamma(gg))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.