Package: Countr 3.5.8

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). If the suggested package 'pscl' is not available from CRAN, it can be installed with 'remotes::install_github("cran/pscl")'. It is no longer used by the functions in this package but is needed for some of the extended examples.

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

Countr_3.5.8.tar.gz
Countr_3.5.8.zip(r-4.5)Countr_3.5.8.zip(r-4.4)Countr_3.5.8.zip(r-4.3)
Countr_3.5.8.tgz(r-4.4-x86_64)Countr_3.5.8.tgz(r-4.4-arm64)Countr_3.5.8.tgz(r-4.3-x86_64)Countr_3.5.8.tgz(r-4.3-arm64)
Countr_3.5.8.tar.gz(r-4.5-noble)Countr_3.5.8.tar.gz(r-4.4-noble)
Countr_3.5.8.tgz(r-4.4-emscripten)Countr_3.5.8.tgz(r-4.3-emscripten)
Countr.pdf |Countr.html
Countr/json (API)
NEWS

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

Peer review:

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

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

On CRAN:

count-datarenewal-processsports-modelling

34 exports 4 stars 1.19 score 84 dependencies 42 scripts 1.3k downloads

Last updated 8 months agofrom:fbe1aca07d. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 10 2024
R-4.5-win-x86_64OKSep 10 2024
R-4.5-linux-x86_64OKSep 10 2024
R-4.4-win-x86_64OKSep 10 2024
R-4.4-mac-x86_64OKSep 10 2024
R-4.4-mac-aarch64OKSep 10 2024
R-4.3-win-x86_64OKSep 10 2024
R-4.3-mac-x86_64OKSep 10 2024
R-4.3-mac-aarch64OKSep 10 2024

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

Dependencies:abindassertthatbackportsbbmlebdsmatrixBHbootbroomcarcarDataclicolorspacecowplotcpp11data.tableDerivdeSolvedoBydplyrfansifarverfastGHQuadflexsurvFormulagenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmstatemuhazmunsellmvtnormnlmenloptrnnetnumDerivoptimxpbkrtestpillarpkgconfigpracmapurrrquadprogquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackrlangrstpm2scalesSparseMstandardizestatmodstringistringrsurvivaltibbletidyrtidyselectutf8vctrsVGAMviridisLitewithrxtablezoo

Comparing performance of computational methods

Rendered fromComputationalPerformance.Rnwusingutils::Sweaveon Sep 10 2024.

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

Computation of variance-covariance matrix

Rendered fromVarianceCovariance.Rnwusingutils::Sweaveon Sep 10 2024.

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

Example with fertility data

Rendered fromexampleFertility.Rnwusingutils::Sweaveon Sep 10 2024.

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

Example with football data

Rendered fromexampleFootball.Rnwusingutils::Sweaveon Sep 10 2024.

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

Example with quine data

Rendered fromModelSelectionAndComparison.Rnwusingutils::Sweaveon Sep 10 2024.

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

Guide for package Countr

Rendered fromCountr_guide.Rnwusingutils::Sweaveon Sep 10 2024.

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
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
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 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