This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is jsurvival, a jamovi module for survival analysis that is part of the ClinicoPath statistical analysis suite. It provides survival analysis functions with natural language summaries, Kaplan-Meier plots, Cox regression, and various survival-related calculations for medical research.
# Documentation and building
devtools::document() # Generate documentation from roxygen comments
devtools::check() # Run R CMD check
devtools::build() # Build package
devtools::install() # Install package locally
# Website documentation
pkgdown::build_site() # Build documentation website locally
usethis::use_testthat()
and usethis::use_test("function-name")
/R/
with paired .h.R
(header/options) and .b.R
(body/implementation) files/jamovi/
define module interface and menu structuresinglearm
: Single arm survival analysissurvival
: Univariate survival analysis with Cox regressionsurvivalcont
: Survival analysis for continuous variables with cut-offsmultisurvival
: Multivariable Cox regressionoddsratio
: Odds ratio calculations for binary outcomestimeinterval
: Time interval calculations{name}.h.R
(options/header) + {name}.b.R
(implementation){name}.a.yaml
(analysis), {name}.r.yaml
(results), {name}.u.yaml
(UI)Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.