Skip to content

kmc

0.4-2

Kaplan-Meier Estimator with Constraints for Right Censored Data -- a Recursive Computational Algorithm

0packages depend
3.1Kdownloads / year
30.0%test coverage
0/13checks pass

Overview

About
Maintained by Yifan YangFirst published 2013-12-255 releasesCRAN page ↗GitHub ↗

Given constraints for right censored data, we use a recursive computational algorithm to calculate the the "constrained" Kaplan-Meier estimator. The constraint is assumed given in linear estimating equations or mean functions. We also illustrate how this leads to the empirical likelihood ratio test with right censored data and accelerated failure time model with given coefficients. EM algorithm from emplik package is used to get the initial value. The properties and performance of the EM algorithm is discussed in Mai Zhou and Yifan Yang (2015)<doi: 10.1007/s00180-015-0567-9> and Mai Zhou and Yifan Yang (2017) <doi: 10.1002/wics.1400>. More applications could be found in Mai Zhou (2015) <doi: 10.1201/b18598>.

Install

Health

CRAN checks
13NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • NOTE r-oldrel-macos-arm64
  • NOTE r-oldrel-macos-x86_64
  • NOTE r-oldrel-windows-x86_64
  • NOTE r-patched-linux-x86_64
  • NOTE r-release-linux-x86_64
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • NOTE r-release-windows-x86_64
Slowest check: 3.2 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.05
30.0%
Coverage · measured lines
100%
Documentation · exports
3
Dependencies · direct
Check history
  • NOTE2026-04-22
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    0 OK · 13 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
82%
Return-value docs
100%
References docs
80%

Downloads

3.1K
CRAN downloads in the past year
Rank #12,161 · ~9/day · ~261/mo
Daily download trend is not available in this view yet.
22430 days
81790 days
3.1K1 year
Compare downloads with other packages →
Also on395 r2u77 c2d4u

Repository

Repository
2Stars
3Forks
0Open issues
0Open PRs
0Releases
75Commits
7Contributors
75 commits · Last activity 2026-05-27

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/yfyang86/kmc on 2026-08-16.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)
Depends (4)
R >= 3.5compilerrootSolveemplik
Imports (0)
none
LinkingTo (1)
Suggests (4)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (2)
Author, Maintainer, Copyright holder
Author
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

5 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.4-2Latest
    2022-11-22 · current release · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.2-4
    2020-03-16 · diff ↗
  • unarchivedReturned to CRAN
    2020-03-16
  • archivedRemoved from CRAN
    2020-03-12
    installation errors were not corrected in time On sanitized build with clang 10: misuses 'inline'
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2-3
    2019-04-24 · diff ↗
  • unarchivedReturned to CRAN
    2019-04-24
  • archivedRemoved from CRAN
    2018-05-03
    check problems were not corrected despite reminders
  • R
    R 3.5.0 released · 2018-04-23
Show 7 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 0.2-2
    2015-11-23 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 0.1-2
    2013-12-25
  • R
    R 3.0.0 released · 2013-04-03

Package metadata

First published
2013-12-25
Total releases
5 / 13 yrs
License
LGPL-3 OSI
Minimum R
≥ 3.5
Download size
19 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("kmc")
Yang, Y., & Zhou, M. (2022). kmc: Kaplan-Meier Estimator with Constraints for Right Censored Data -- a Recursive Computational Algorithm (Version 0.4-2) [Computer software]. https://doi.org/10.32614/CRAN.package.kmc

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for kmc version 0.4-2 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy