Welcome to ClientVPS Mirrors

README

chestR

Kernel-weighted Cox regression for exploring treatment effect heterogeneity and candidate predictive biomarkers.

Installation

# install.packages("devtools")
devtools::install_github("richJJackson/chestR")

Or install from a local checkout:

devtools::install("path/to/chestR")

Quick start

library(survival)
library(chestR)

# Fit a global Cox model
base <- coxph(Surv(time, status) ~ treatment + covariate, data = mydata)

# Local estimates over a biomarker grid
cr <- chestr(base, mydata[, c("biom1", "biom2")], grid.size = 25,
             treat_term = "treatment")

# Visualise local treatment effect
plot(cr, trt.param = "treatment")

# Optional permutation test of constant treatment effect
# tst <- chestr_test(cr, B = 99, seed = 1)

See vignette("chestr-workflow", package = "chestR") after install, or inst/examples/simulation.R for a longer simulation script.

Development

Open chestR.Rproj in RStudio, then:

devtools::load_all()
devtools::test()
devtools::document()
devtools::check()

License

MIT

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.