Description Usage Arguments Value
View source: R/distributions.R
Estimate via method of moments fit and paramaters of a ZIP distribution from DP data
1 | paramsZIP(X, S, R, moments_df, plot_dp)
|
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 |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.