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