Learn R Programming

Installing Countr

The latest stable version is on CRAN.

install.packages("Countr")

You can install the development version of Countr from Github:

remotes::install_github("GeoBosh/Countr")

Overview

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 in a paper in the Journal of Statistical Software. The paper is included as vignette vignette("Countr_guide") along wth several additional vignettes containing worked examples and additional details, see Countr CRAN page.

The package is developed by Tarak Kharrat and Georgi N.Boshnakov.

Copy Link

Version

Install

install.packages('Countr')

Monthly Downloads

609

Version

3.6.1

License

GPL (>= 2)

Maintainer

Georgi Boshnakov

Last Published

January 18th, 2026

Functions in Countr (3.6.1)

dmodifiedCount_bi

Compute count probabilities based on modified renewal process (bi)
renewal.control

Creates the renewal control list
evCount_conv_bi

Expected value and variance of a renewal count process
renewal

Deprecated old name of renewalCount()
predict.renewal

Predict method for renewal objects
renewal_methods

Methods for renewal objects
residuals_plot

Method to visualise the residuals
getParNames

Return the names of distribution parameters
renewalCoefList

Split a vector using the prefixes of the names for grouping
dWeibullCount

Probability calculations for Weibull count models
renewalCoef

Get named vector of coefficients for renewal objects
frequency_plot

Plot a frequency chart
fertility

Fertility data
surv

Wrapper to built-in survival functions
se.coef

Extract Standard Errors of Model Coefficients
renewal.convPars

Creates the convolution inputs setting
renewal.seriesPars

Creates the series expansion inputs setting
football

Football data
renewal.weiMethod

Check weibull computation algorithm
renewalNames

Get names of parameters of renewal regression models
renewalCount

Fit renewal count processes regression models
compareToGLM

Compare renewals fit to glm models fit
CountrFormula

Create a formula for renewalCount
Countr-package

Flexible Univariate Count Models Based on Renewal Processes
dBivariateWeibullCountFrankCopula

Density and log-likelihood of the Bivariate Frank Copula Weibull Count model
count_table

Summary of a count variable
chiSq_gof

Formal Chi-square goodness-of-fit test
addBootSampleObject

Create a bootsrap sample for coefficient estimates
chiSq_pearson

Pearson Chi-Square test
alphagen

Matrix of alpha terms
dCount_allProbs_bi

Compute count probabilities using simple convolution
dCount_conv_bi

Compute count probabilities using convolution
dCount_dePril_bi

Compute count probabilities using dePril convolution (bi)
dRenewalFrankCopula_user

Bivariate Count probability Using Frank copula (user)
dWeibullgammaCount_mat_Covariates

Univariate Weibull Count Probability with gamma and covariate heterogeneity
dWeibullgammaCount_acc

Fast Univariate Weibull Count Probability with gamma heterogeneity
dCount_conv_loglik_bi

Log-likelihood of a count probability computed by convolution (bi)
dWeibullCount_mat

Univariate Weibull Count Probability
dWeibullgammaCount_mat

Univariate Weibull Count Probability with gamma heterogeneity
dCount_naive_bi

Compute count probabilities using naive convolution (bi)