poilog_pzero2mu: Estimate Poisson-lognormal scale parameter from zero fraction

Description Usage Arguments Value

View source: R/poilog.R

Description

Given a fixed sigma parameter, use the fraction of zeros to estimate the mu parameter of a Poisson-lognormal distribution via the method of moments.

Usage

1
poilog_pzero2mu(lpz, sig = 2.5, lims = c(-200, 200))

Arguments

lpz

a numeric vector representing the natural log of the empirical fraction of zeros from count data.

sig

either a positive scalar or a vector of same length as lpz specifying the fixed sigma parameter (see dpoilog).

lims

interval of possible values for the scale parameter (mu), passed to uniroot.

Value

a numeric vector of estimated scale parameters (mu) for each element of lpz.


willtownes/quminorm documentation built on March 13, 2021, 2:16 a.m.