{
  "_id": "6a55fb52ff0138dec5d6b525",
  "Package": "mccount",
  "Title": "Estimate Recurrent Event Burden with Competing Risks",
  "Version": "0.1.1.9000",
  "Authors@R": "person(\"Kenneth A.\", \"Taylor\", , \"kenneth.taylor.dpt@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-3205-9280\"))",
  "Description": "Calculates mean cumulative count (MCC) to estimate the\nexpected cumulative number of recurrent events per person over\ntime in the presence of competing risks and censoring.\nImplements both the Dong-Yasui equation method and sum of\ncumulative incidence method described in Dong, et al. (2015)\n<doi:10.1093/aje/kwu289>. Supports inverse probability\nweighting for causal inference as outlined in Gaber, et al.\n(2023) <doi:10.1093/aje/kwad031>. Provides S3 methods for\nprinting, summarizing, plotting, and extracting results.\nHandles grouped analyses and integrates with 'ggplot2'\n<https://ggplot2.tidyverse.org/> for visualization.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/KennethATaylor/mccount,\nhttps://kennethataylor.github.io/mccount/",
  "BugReports": "https://github.com/KennethATaylor/mccount/issues",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/Needs/website": "rmarkdown",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://kennethataylor.r-universe.dev",
  "Date/Publication": "2025-11-14 14:01:35 UTC",
  "RemoteUrl": "https://github.com/kennethataylor/mccount",
  "RemoteRef": "HEAD",
  "RemoteSha": "e2222cbf5c2942fa42709a53d3083a36d6520226",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-14 08:57:28 UTC",
    "User": "root"
  },
  "Author": "Kenneth A. Taylor [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-3205-9280>)",
  "Maintainer": "Kenneth A. Taylor <kenneth.taylor.dpt@gmail.com>",
  "_user": "kennethataylor",
  "_type": "src",
  "_file": "mccount_0.1.1.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/c9df84b81f7a232578b755ed327999a88e8d57ee1f6fc73f7c8f351bfd5dfc55",
  "_filesize": 1490433,
  "_sha256": "c9df84b81f7a232578b755ed327999a88e8d57ee1f6fc73f7c8f351bfd5dfc55",
  "_expires": "2026-10-22T09:03:11.000Z",
  "_created": "2026-07-14T08:57:28.000Z",
  "_published": "2026-07-14T09:03:13.884Z",
  "_jobs": [
    {
      "job": 87042584776,
      "time": 183,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8305538645"
    },
    {
      "job": 87042584671,
      "time": 176,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8305535660"
    },
    {
      "job": 87042584693,
      "time": 123,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8305588757"
    },
    {
      "job": 87042584719,
      "time": 106,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8305584215"
    },
    {
      "job": 87041878118,
      "time": 210,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8305461260"
    },
    {
      "job": 87042584685,
      "time": 130,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8305517014"
    },
    {
      "job": 87042584731,
      "time": 125,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8305515675"
    },
    {
      "job": 87042584967,
      "time": 139,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8305521876"
    },
    {
      "job": 87042584734,
      "time": 119,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8305512910"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/kennethataylor/actions/runs/29319696338",
  "_status": "success",
  "_upstream": "https://github.com/kennethataylor/mccount",
  "_commit": {
    "id": "e2222cbf5c2942fa42709a53d3083a36d6520226",
    "author": "Ken Taylor <kenneth.taylor.dpt@gmail.com>",
    "committer": "Ken Taylor <kenneth.taylor.dpt@gmail.com>",
    "message": "Minor edits to vignette\n",
    "time": 1763128895
  },
  "_maintainer": {
    "name": "Kenneth A. Taylor",
    "email": "kenneth.taylor.dpt@gmail.com",
    "login": "kennethataylor",
    "orcid": "0000-0002-3205-9280",
    "description": "",
    "uuid": 110407869
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cards",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "cmprsk",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "boot",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.5.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "MatchIt",
      "role": "Suggests"
    },
    {
      "package": "mstate",
      "role": "Suggests"
    },
    {
      "package": "optmatch",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "WeightIt",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "kennethataylor",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-34",
      "n": 6
    },
    {
      "week": "2025-36",
      "n": 1
    },
    {
      "week": "2025-45",
      "n": 7
    },
    {
      "week": "2025-46",
      "n": 10
    }
  ],
  "_tags": [
    {
      "name": "v0.1.1",
      "date": "2025-11-10"
    }
  ],
  "_topics": [
    "biostatistics",
    "censoring-events",
    "competing-risks",
    "epidemiology",
    "mean-cumulative-count",
    "mean-cumulative-function",
    "recurrent-events"
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "kennethataylor",
      "count": 106,
      "uuid": 110407869
    }
  ],
  "_userbio": {
    "uuid": 110407869,
    "type": "user",
    "name": "Ken Taylor",
    "followers": 7
  },
  "_downloads": {
    "count": 236,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mccount"
  },
  "_devurl": "https://github.com/kennethataylor/mccount",
  "_pkgdown": "https://kennethataylor.github.io/mccount/",
  "_searchresults": 5,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mccount.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kennethataylor/mccount",
  "_realowner": "kennethataylor",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2025-11-13"
    }
  ],
  "_exports": [
    "as_mcc",
    "compare_mcc",
    "filter_mcc",
    "geom_line_mcc",
    "is_grouped",
    "is_mcc",
    "is_weighted",
    "mcc",
    "mcc_details",
    "mcc_estimates",
    "mcc_final_values",
    "mcc_grouping_var",
    "mcc_groups",
    "mcc_method"
  ],
  "_help": [
    {
      "page": "as_mcc",
      "title": "Convert objects to 'mcc' class",
      "topics": [
        "as_mcc"
      ]
    },
    {
      "page": "as.data.frame.mcc",
      "title": "Convert 'mcc' object to data.frame",
      "topics": [
        "as.data.frame.mcc"
      ]
    },
    {
      "page": "autoplot.mcc",
      "title": "Auto-plot method for 'mcc' objects",
      "topics": [
        "autoplot.mcc"
      ]
    },
    {
      "page": "compare_mcc",
      "title": "Compare 'mcc' objects",
      "topics": [
        "compare_mcc"
      ]
    },
    {
      "page": "filter_mcc",
      "title": "Filter 'mcc' object by groups",
      "topics": [
        "filter_mcc"
      ]
    },
    {
      "page": "geom_line_mcc",
      "title": "Add Reference Lines at an MCC Threshold to ggplot2 Objects",
      "topics": [
        "geom_line_mcc"
      ]
    },
    {
      "page": "is_grouped",
      "title": "Check if 'mcc' object is from grouped analysis",
      "topics": [
        "is_grouped"
      ]
    },
    {
      "page": "is_mcc",
      "title": "Check if object is an 'mcc' result",
      "topics": [
        "is_mcc"
      ]
    },
    {
      "page": "is_weighted",
      "title": "Check if 'mcc' object uses weighted estimation",
      "topics": [
        "is_weighted"
      ]
    },
    {
      "page": "mcc",
      "title": "Calculate Mean Cumulative Count (MCC)",
      "topics": [
        "mcc"
      ]
    },
    {
      "page": "mcc_details",
      "title": "Extract calculation details from 'mcc' objects",
      "topics": [
        "mcc_details"
      ]
    },
    {
      "page": "mcc_estimates",
      "title": "Extract MCC estimates from 'mcc' objects",
      "topics": [
        "mcc_estimates"
      ]
    },
    {
      "page": "mcc_final_values",
      "title": "Get final MCC value for each group",
      "topics": [
        "mcc_final_values"
      ]
    },
    {
      "page": "mcc_grouping_var",
      "title": "Get grouping variable name from grouped 'mcc' object",
      "topics": [
        "mcc_grouping_var"
      ]
    },
    {
      "page": "mcc_groups",
      "title": "Extract unique groups from grouped 'mcc' object",
      "topics": [
        "mcc_groups"
      ]
    },
    {
      "page": "mcc_method",
      "title": "Get the method used for MCC calculation",
      "topics": [
        "mcc_method"
      ]
    },
    {
      "page": "plot.mcc",
      "title": "Plot MCC results",
      "topics": [
        "plot.mcc"
      ]
    },
    {
      "page": "print.mcc",
      "title": "Print method for 'mcc' objects",
      "topics": [
        "print.mcc"
      ]
    },
    {
      "page": "print.mcc_comparison",
      "title": "Print method for MCC comparison objects",
      "topics": [
        "print.mcc_comparison"
      ]
    },
    {
      "page": "print.summary.mcc",
      "title": "Print method for 'mcc' summary objects",
      "topics": [
        "print.summary.mcc"
      ]
    },
    {
      "page": "summary.mcc",
      "title": "Summary method for 'mcc' objects",
      "topics": [
        "summary.mcc"
      ]
    }
  ],
  "_pkglogo": "https://github.com/kennethataylor/mccount/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/kennethataylor/mccount/raw/HEAD/README.md",
  "_rundeps": [
    "cards",
    "cli",
    "cmprsk",
    "cpp11",
    "data.table",
    "dplyr",
    "generics",
    "glue",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rlang",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "choosing-between-methods.Rmd",
      "filename": "choosing-between-methods.html",
      "title": "Choosing Between Methods",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Two Approaches, Same Goal",
        "When Methods Are Equivalent",
        "Administrative Censoring Only",
        "Synchronized Event-Interval Censoring",
        "When Methods Differ and Why",
        "When Events Are Exchangeable",
        "When Event Order Matters",
        "Documenting Your Choice",
        "Special Case - Delayed Study Entry",
        "Summary"
      ],
      "created": "2025-09-04 05:38:09",
      "modified": "2025-09-04 05:38:09",
      "commits": 1
    },
    {
      "source": "estimating-mcc-after-matching-or-weighting.Rmd",
      "filename": "estimating-mcc-after-matching-or-weighting.html",
      "title": "Estimating MCC After Matching or Weighting",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "When to Use Weights with MCC",
        "Inverse Probability of Treatment Weighting (IPTW)",
        "Step 1: Estimate Propensity Scores and Create Weights",
        "Step 2: Estimate Weighted MCC",
        "Step 3: Compare Weighted vs Unweighted Results",
        "Propensity Score Matching",
        "Important Note on Matching Weights",
        "Example: 1:1 Nearest Neighbor Matching (No Weights Needed)",
        "Example: Full Matching with Weights",
        "Visualization of Weighted/Matched Results",
        "Key Interpretation Points",
        "Causal vs Descriptive Interpretation",
        "Assumptions",
        "Stabilized vs Unstabilized Weights",
        "Not Covered",
        "Summary"
      ],
      "created": "2025-11-04 18:56:31",
      "modified": "2025-11-14 14:01:35",
      "commits": 2
    }
  ],
  "_score": 4.903089986991944,
  "_indexed": true,
  "_nocasepkg": "mccount",
  "_universes": [
    "kennethataylor"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1.9000",
      "date": "2026-07-14T08:59:57.000Z",
      "distro": "resolute",
      "commit": "e2222cbf5c2942fa42709a53d3083a36d6520226",
      "fileid": "https://r2.ropensci.org/51f190d2aca4dc0f900909d63c8abff70b7d148addeb3164e670bf1a1e710e47",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kennethataylor/actions/runs/29319696338"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1.9000",
      "date": "2026-07-14T08:59:55.000Z",
      "distro": "resolute",
      "commit": "e2222cbf5c2942fa42709a53d3083a36d6520226",
      "fileid": "https://r2.ropensci.org/4d309a0a600e5ecc6f3a8b0e70f8843d449ebc66e1b5f9c39d4633dcddda546b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kennethataylor/actions/runs/29319696338"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1.9000",
      "date": "2026-07-14T09:02:11.000Z",
      "commit": "e2222cbf5c2942fa42709a53d3083a36d6520226",
      "fileid": "https://r2.ropensci.org/ea37717725d1f4c20902b50b1a6f3aec99b7c6512bcd7e381acadbb31400cd8f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kennethataylor/actions/runs/29319696338"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1.9000",
      "date": "2026-07-14T09:02:08.000Z",
      "commit": "e2222cbf5c2942fa42709a53d3083a36d6520226",
      "fileid": "https://r2.ropensci.org/8b93639b14129f5f21c66ca0b661f19636880a6efb56d1dda63b3c11b030f81f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kennethataylor/actions/runs/29319696338"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1.9000",
      "date": "2026-07-14T08:59:56.000Z",
      "commit": "e2222cbf5c2942fa42709a53d3083a36d6520226",
      "fileid": "https://r2.ropensci.org/38f5a194dd8e63e89136f4635b67c178eb85c238f8e8680528db074cb27e87a0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kennethataylor/actions/runs/29319696338"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-07-14T08:58:49.000Z",
      "commit": "e2222cbf5c2942fa42709a53d3083a36d6520226",
      "fileid": "https://r2.ropensci.org/b475cec074960fece6ad118f7d0719304cfcd1b6f7e440a2f773c84a258ac442",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kennethataylor/actions/runs/29319696338"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-07-14T08:59:10.000Z",
      "commit": "e2222cbf5c2942fa42709a53d3083a36d6520226",
      "fileid": "https://r2.ropensci.org/1fb15f808450091012943750eea8db543ea1aae5b4370fdf718c464aacb98684",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kennethataylor/actions/runs/29319696338"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1.9000",
      "date": "2026-07-14T08:58:55.000Z",
      "commit": "e2222cbf5c2942fa42709a53d3083a36d6520226",
      "fileid": "https://r2.ropensci.org/3b1aabf7eb7f46a45002d9db7daf683d14d791e9a8e40154caa0728fb1a78a8a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kennethataylor/actions/runs/29319696338"
    }
  ]
}