Learn R Programming

mccount

Overview

mccount provides tools to estimate the mean cumulative count (MCC) of recurrent events in the presence of competing risks. Unlike traditional cumulative incidence methods that only consider the first occurrence of an event, MCC accounts for multiple occurrences of the same event type per individual, providing a more informative measure of the total burden of recurrent events in a population.

Available MCC methods in this package include the Dong-Yasui or the sum of cumulative incidences estimators, based on the work of Dong, et al.[^1] Users can also estimate the MCC using the weighted Dong-Yasui estimator.[^2]

Installation

You can install mccount from CRAN using the following code:

install.packages("mccount")

Development version

You can install the development version of mccount like so:

# install.packages("pak")
pak::pkg_install("KennethATaylor/mccount")

Why Mean Cumulative Count?

In the context of clinical and epidemiological studies, subjects may experience multiple recurrent events over a given follow-up period. Traditional methods like Kaplan-Meier or cumulative incidence only account for the first occurrence of an event and ignore subsequent recurrent events, which can lead to underestimation of the true disease burden.

The MCC:

  • Summarizes all events that occur in the population by a given time
  • Accounts for competing risks that may terminate follow-up
  • Provides a more complete picture of the recurrent event burden
  • Is interpretable as the expected number of events per subject by a specific time point

Citation

If you use mccount in your research, please cite the package in addition to the relevant original methodology paper(s).

citation("mccount")

[^1]: Dong H, Robison LL, Leisenring WM, Martin LJ, Armstrong GT, Yasui Y. Estimating the burden of recurrent events in the presence of competing risks: the method of mean cumulative count. Am J Epidemiol. 2015 Apr 1;181(7):532-40. doi: 10.1093/aje/kwu289

[^2]: Gaber CE, Edwards JK, Lund JL, Peery AF, Richardson DB, Kinlaw AC. Inverse Probability Weighting to Estimate Exposure Effects on the Burden of Recurrent Outcomes in the Presence of Competing Events. Am J Epidemiol. 2023;192(5):830-839. doi: 10.1093/aje/kwad031

Copy Link

Version

Install

install.packages('mccount')

Monthly Downloads

218

Version

0.1.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Kenneth A. Taylor

Last Published

November 13th, 2025

Functions in mccount (0.1.1)

plot.mcc

Plot MCC results
print.mcc

Print method for mcc objects
summary.mcc

Summary method for mcc objects
print.summary.mcc

Print method for mcc summary objects
print.mcc_comparison

Print method for MCC comparison objects
compare_mcc

Compare mcc objects
get_time_to_mcc

Get Time When MCC Reaches a Specific Threshold
is_mcc

Check if object is an mcc result
geom_line_mcc

Add Reference Lines at an MCC Threshold to ggplot2 Objects
autoplot.mcc

Auto-plot method for mcc objects
filter_mcc

Filter mcc object by groups
is_grouped

Check if mcc object is from grouped analysis
as_mcc

Convert objects to mcc class
as.data.frame.mcc

Convert mcc object to data.frame
is_weighted

Check if mcc object uses weighted estimation
mcc_estimates

Extract MCC estimates from mcc objects
mcc_grouping_var

Get grouping variable name from grouped mcc object
mcc_details

Extract calculation details from mcc objects
mcc_final_values

Get final MCC value for each group
mcc

Calculate Mean Cumulative Count (MCC)
mccount-package

mccount: Estimate Recurrent Event Burden with Competing Risks
mcc_sci

Calculate Mean Cumulative Count using the Sum of Cumulative Incidence method
mcc_equation

Calculate Mean Cumulative Count using the equation method
mcc_groups

Extract unique groups from grouped mcc object
mcc_method

Get the method used for MCC calculation