paramsZIP: Zero-Inflated Poisson fit

Description Usage Arguments Value

View source: R/distributions.R

Description

Estimate via method of moments fit and paramaters of a ZIP distribution from DP data

Usage

1
paramsZIP(X, S, R, moments_df, plot_dp)

Arguments

X

dp vector

S

dp noise added to obtain X

R

numbers of implied moments to fit

moments_df

estimated moments of Z

plot_dp

TRUE/FALSE value denoting whether to generate plot

Value

Returns list of estimates:

params

Method of moment estimate of mean/variance of ZIP distribution

moment_df

Moments used to estimate params

moment_fit

Ratio of estimated moments to implied moments from paramaterized distribution

moment_precision

Ratio of moment mean to moment standard error

plot

Plot of fitted distribution


georgieevans/PrivacyUnbiased documentation built on May 22, 2021, 1:01 p.m.