The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

coxmnar: Cox Regression with Missing Not at Random Failure Indicators

coxmnar implements estimation for the Cox proportional hazards model when the failure indicator (cause of failure) is missing not at random (MNAR), following the methodology of Liu and Liu (2026) (Statistics and Computing, 36, 112).

Features

Installation

You can install the development version of coxmnar from GitHub:

# install.packages("devtools")
devtools::install_github("shikhartyagi/coxmnar")

Quick Start

library(coxmnar)

# Simulate survival data with MNAR missing failure indicators
set.seed(123)
sim_data <- simulate_coxmnar_data(n = 200, beta0 = 0.2, mechanism = "mnar", seed = 123)

# Fit Adjusted-Imputation MNAR estimator
fit <- coxmnar(
  cause ~ Z,
  time = "time",
  data = sim_data,
  method = "ai",
  B = 100L,
  seed = 123
)

summary(fit)

Citation

To cite coxmnar in publications:

citation("coxmnar")

Reference

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.