Package: Countr 3.6.0.9000

Georgi N. Boshnakov

Countr: Flexible Univariate Count Models Based on Renewal Processes

Flexible univariate count models based on renewal processes. The models may include covariates and can be specified with familiar formula syntax as in glm() and package 'flexsurv'. The methodology is described by Kharrat et all (2019) <doi:10.18637/jss.v090.i13> (included as vignette 'Countr_guide' in the package).

Authors:Tarak Kharrat [aut], Georgi N. Boshnakov [aut, cre]

Countr_3.6.0.9000.tar.gz
Countr_3.6.0.9000.zip(r-4.5)
Countr_3.6.0.9000.tgz(r-4.6-x86_64)Countr_3.6.0.9000.tgz(r-4.6-arm64)Countr_3.6.0.9000.tgz(r-4.5-x86_64)Countr_3.6.0.9000.tgz(r-4.5-arm64)

Countr_3.6.0.9000.tgz(r-4.5-emscripten)
manual.pdf |manual.html
card.svg |card.png
Countr/json (API)
NEWS

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

Bug tracker:https://github.com/geobosh/countr/issues

Pkgdown/docs site:https://geobosh.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

count-datarenewal-processsports-modellingopenblascpp

5.69 score 4 stars 41 scripts 556 downloads 37 exports 88 dependencies

Last updated from:81dd4ccfe6. Checks:4 FAIL, 9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64FAIL177
linux-devel-x86_64FAIL174
source / vignettesOK294
linux-release-arm64OK231
linux-release-x86_64OK231
macos-release-arm64OK144
macos-release-x86_64OK309
macos-oldrel-arm64OK219
macos-oldrel-x86_64OK341
windows-develFAIL175
windows-releaseFAIL193
windows-oldrelOK234
wasm-releaseOK187

Exports:addBootSampleObjectchiSq_gofchiSq_pearsoncompareToGLMcount_tableCountrFormuladBivariateWeibullCountFrankCopuladBivariateWeibullCountFrankCopula_loglikdCount_conv_bidCount_conv_loglik_bidCount_conv_loglik_userdCount_conv_userdmodifiedCount_bidRenewalFrankCopula_bidRenewalFrankCopula_userdWeibullCountdWeibullCount_loglikdWeibullgammaCountdWeibullgammaCount_loglikevCount_conv_bievCount_conv_userevWeibullCountevWeibullgammaCountfrequency_plotgetParNamesrenewalrenewal.controlrenewal.convParsrenewal.seriesParsrenewal.weiMethodrenewalCoefrenewalCoefListrenewalCountrenewalNamesresiduals_plotse.coefsurv

Dependencies:abindassertthatbackportsbbmlebdsmatrixbootbroomcarcarDataclicolorspacecowplotcpp11data.tableDerivdeSolvedoBydplyrfarverfastGHQuadflexsurvforecastFormulafracdiffgenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4lmtestlsodamagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmstatemuhazmvtnormnlmenloptrnnetnumDerivoptimxpbkrtestpillarpkgconfigpracmapsclpurrrquadprogquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangrstpm2S7scalesSparseMstandardizestatmodstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsVGAMviridisLitewithrzoo

Comparing performance of computational methods

Rendered fromComputationalPerformance.Rnwusingutils::Sweaveon Apr 06 2026.

Last update: 2019-05-27
Started: 2019-05-27

Computation of variance-covariance matrix

Rendered fromVarianceCovariance.Rnwusingutils::Sweaveon Apr 06 2026.

Last update: 2019-05-27
Started: 2019-05-27

Example with fertility data

Rendered fromexampleFertility.Rnwusingutils::Sweaveon Apr 06 2026.

Last update: 2019-05-27
Started: 2019-05-27

Example with football data

Rendered fromexampleFootball.Rnwusingutils::Sweaveon Apr 06 2026.

Last update: 2019-05-27
Started: 2019-05-27

Example with quine data

Rendered fromModelSelectionAndComparison.Rnwusingutils::Sweaveon Apr 06 2026.

Last update: 2019-05-27
Started: 2019-05-27

Guide for package Countr

Rendered fromCountr_guide.Rnwusingutils::Sweaveon Apr 06 2026.

Last update: 2019-05-27
Started: 2019-05-27

Readme and manuals

Help Manual

Help pageTopics
Flexible Univariate Count Models Based on Renewal ProcessesCountr-package Countr
Create a bootsrap sample for coefficient estimatesaddBootSampleObject
Formal Chi-square goodness-of-fit testchiSq_gof chiSq_gof.glm chiSq_gof.negbin chiSq_gof.renewal
Pearson Chi-Square testchiSq_pearson chiSq_pearson.glm chiSq_pearson.renewal
Compare renewals fit to glm models fitcompareToGLM
Summary of a count variablecount_table
Create a formula for renewalCountCountrFormula
Density and log-likelihood of the Bivariate Frank Copula Weibull Count modeldBivariateWeibullCountFrankCopula dBivariateWeibullCountFrankCopula_loglik
Compute count probabilities using convolutiondCount_conv_bi dCount_conv_user
Log-likelihood of a count probability computed by convolution (bi)dCount_conv_loglik_bi dCount_conv_loglik_user
Compute count probabilities based on modified renewal process (bi)dmodifiedCount_bi dmodifiedCount_user
Bivariate Count probability Using Frank copula (user)dRenewalFrankCopula_bi dRenewalFrankCopula_user
Probability calculations for Weibull count modelsdWeibullCount dWeibullCount_loglik evWeibullCount
Univariate Weibull Count Probability with gamma and covariate heterogeneitydWeibullgammaCount_mat_Covariates
Expected value and variance of a renewal count processevCount_conv_bi evCount_conv_user
Fertility datafertility
Football datafootball
Plot a frequency chartfrequency_plot
Return the names of distribution parametersgetParNames
Predict method for renewal objectspredict.renewal
Methods for renewal objectsaddBootSampleObject.renewal coef.renewal confint.renewal df.residual.renewal extractAIC.renewal fitted.renewal logLik.renewal model.matrix.renewal nobs.renewal print.renewal print.summary.renewal renewal_methods residuals.renewal residuals_plot.renewal summary.renewal vcov.renewal
Get named vector of coefficients for renewal objectsrenewalCoef
Split a vector using the prefixes of the names for groupingrenewalCoefList
Fit renewal count processes regression modelsrenewalCount
Get names of parameters of renewal regression modelsrenewalNames
Method to visualise the residualsresiduals_plot
Extract Standard Errors of Model Coefficientsse.coef se.coef.renewal
Wrapper to built-in survival functionssurv