Package: evinf 1.0.0

David Randahl

evinf: Inference with Extreme Value Inflated Count Data

Allows users to model and draw inferences from extreme value inflated count data, and to evaluate these models and compare them to their non extreme-value inflated counterparts. The package is built to be compatible with standard model-presentation tools such as the 'broom', 'generics', and 'modelsummary' packages.

Authors:David Randahl [cre, aut], Johan Vegelius [aut]

evinf_1.0.0.tar.gz
evinf_1.0.0.zip(r-4.7-x86_64)evinf_1.0.0.zip(r-4.7-arm64)evinf_1.0.0.zip(r-4.6-x86_64)evinf_1.0.0.zip(r-4.6-arm64)evinf_1.0.0.zip(r-4.5-x86_64)
evinf_1.0.0.tgz(r-4.6-x86_64)evinf_1.0.0.tgz(r-4.6-arm64)evinf_1.0.0.tgz(r-4.5-x86_64)evinf_1.0.0.tgz(r-4.5-arm64)
evinf_1.0.0.tar.gz(r-4.7-arm64)evinf_1.0.0.tar.gz(r-4.7-x86_64)evinf_1.0.0.tar.gz(r-4.6-arm64)evinf_1.0.0.tar.gz(r-4.6-x86_64)
evinf_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
evinf/json (API)

# Install 'evinf' in R:
install.packages('evinf', repos = c('https://doktorandahl.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/doktorandahl/evinf/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:
  • genevzinb - Simulated data from the EVZINB distribution
  • genevzinb2 - Simulated data from the EVZINB distribution
  • gm_evzinb - A goodness-of-fit gof tibble for GOF metrics when using modelsummary
  • hks - Replication data for Hultman, Kathman, and Shannon (2013) United Nations Peacekeeping and Civilian Protection in Civil War

On CRAN:

Conda:

openblascppopenmp

3.18 score 1 stars 342 downloads 25 exports 34 dependencies

Last updated from:cd16088beb. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK292
linux-devel-x86_64OK262
source / vignettesOK282
linux-release-arm64OK244
linux-release-x86_64OK235
macos-release-arm64OK232
macos-release-x86_64OK361
macos-oldrel-arm64OK248
macos-oldrel-x86_64OK527
windows-devel-arm64OK335
windows-devel-x86_64OK218
windows-release-arm64OK334
windows-release-x86_64OK242
windows-oldrel-x86_64OK271
wasm-releaseOK142

Exports:add_bootstrapsaugmentc_profilecheck_evinfclassify_statescoefficient_extractorcompare_fitcompare_modelsevinbevinf_bench_dataevinf_controlevinf_familyevzinbfailed_bootstrapsglancegof_map_evinflr_testmarginal_effectsoob_evaluationplot_c_profilepredict_gridrevinb_fitrevzinb_fitstate_tabletidy

Dependencies:clicodetoolscpp11digestdplyrfurrrfuturegenericsglobalsgluelifecyclelistenvmagrittrMASSparallellypillarpkgconfigprogressrpsclpurrrR6rbibutilsRcppRcppArmadilloRdpackrlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Add more bootstrap replicates to a fitted modeladd_bootstraps
Augment data with fitted values, residuals and state classificationaugment.evinb
Augment data with fitted values, residuals and state classificationaugment.evzinb
Log-likelihood profile over the candidate values of C_EVc_profile
Diagnostic report for a fitted evzinb / evinb modelcheck_evinf
Prior and posterior state classificationclassify_states
Coefficients of an evzinb / evinb modelcoef.evinb coef.evzinb
Bootstrap coefficient extractorcoefficient_extractor coefficient_extractor.evinb coefficient_extractor.evzinb coefficient_extractor.nbboot coefficient_extractor.zinbboot
Compare the extreme-value model against its plainer counterpartscompare_fit plot.evzinbcomp
Function to compare evzinb or evinb models with zinb and nb modelscompare_models
Confidence intervals for an evzinb / evinb modelconfint.evinb confint.evzinb
Running an extreme value inflated negative binomial model with bootstrappingevinb
Synthetic data from an EVZINB model with known true parametersevinf_bench_data
Control settings for evzinb() / evinb()evinf_control
Model family for evzinb() / evinb() (round9 E.0)evinf_family
logLik / nobs / model.frame / formula / terms for evzinb / evinb modelsevinf-s3-accessors formula.evinb formula.evzinb logLik.evinb logLik.evzinb model.frame.evinb model.frame.evzinb nobs.evinb nobs.evzinb terms.evinb terms.evzinb
Fitted values, residuals and simulations from an evzinb / evinb modelevinf-s3-predict fitted.evinb fitted.evzinb residuals.evinb residuals.evzinb simulate.evinb simulate.evzinb
Running an extreme value and zero inflated negative binomial model with bootstrappingevzinb
Stacked tidy / glance for a model comparisonevzinbcomp-tidiers glance.evzinbcomp tidy.evzinbcomp
Inspect the bootstrap replicates that failed or came out degeneratefailed_bootstraps
Simulated data from the EVZINB distributiongenevzinb
Simulated data from the EVZINB distributiongenevzinb2
EVZINB and EVINB glance functionsglance.evinb
EVZINB and EVINB glance functionsglance.evzinb
zinbboot and nbboot glance functionsglance.nbboot glance.zinbboot
zipboot and poissonboot glance functionsglance.poissonboot glance.zipboot
A goodness-of-fit gof tibble for GOF metrics when using modelsummarygm_evzinb
Goodness-of-fit map for 'modelsummary'gof_map_evinf
Replication data for Hultman, Kathman, and Shannon (2013) United Nations Peacekeeping and Civilian Protection in Civil Warhks
Likelihood ratio test for individual variables of evzinblr_test
Average marginal effects for an evzinb / evinb modelmarginal_effects
Out of bag predictive performance of EVZINB and EVINB modelsoob_evaluation
Plot the log-likelihood profile over the candidate values of C_EVplot_c_profile
Plots for evzinb / evinb modelsplot.evinb plot.evzinb
Build a prediction grid and evaluate a model over itpredict_grid
Predictions from evinb objectpredict.evinb
Predictions from evzinb objectpredict.evzinb
Prediction for nbbootpredict.nbboot
Prediction for poissonbootpredict.poissonboot
Prediction for zinbbootpredict.zinbboot
Prediction for zipbootpredict.zipboot
EVINB print functionprint.evinb
EVZINB print functionprint.evzinb
Print method for compare_models() outputprint.evzinbcomp
Print methods for evzinb / evinb summariesprint.summary.evinb print.summary.evzinb
Random draws from a fitted evinb modelrevinb_fit
Random draws from a fitted evzinb modelrevzinb_fit
Cross-tabulate prior vs posterior state classificationstate_table
EVINB summary functionsummary.evinb
EVZINB summary functionsummary.evzinb
EVINB tidy functiontidy.evinb
EVZINB tidy functiontidy.evzinb
Tidy function for nbboottidy.nbboot
Tidy function for poissonboottidy.poissonboot
Tidy function for zinbboottidy.zinbboot
Tidy function for zipboottidy.zipboot
Update and re-fit an evzinb / evinb modelupdate.evinb update.evzinb
Bootstrap covariance matrix of an evzinb / evinb modelvcov.evinb vcov.evzinb