Learn R Programming

qmap (version 1.0-4)

startbernlnorm: Rough parameter estimate for the Bernoulli-Log-Normal distribution

Description

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

Usage

startbernlnorm(x)

Arguments

x
numeric vector.

Value

A list containing:
prob
probability of non-zero event.
meanlog
meanlog parameter of the Log-Normal distribution.
sdlog
sdlog parameter of the Log-Normal distribution.

See Also

fitQmapDIST, bernlnorm, fitdist

Examples

Run this code
gg <- rbernlnorm(n=300, prob=0.2, meanlog=1, sdlog=1)
startbernlnorm(gg)
mledist(gg,"bernlnorm",startbernlnorm(gg))

Run the code above in your browser using DataLab