
Clinical and data science utilities for R.
Current package version is maintained in DESCRIPTION; detailed release history is in NEWS.md.
Repository: github.com/crow16384/kstools
From a local checkout (package root):
install.packages(".", repos = NULL, type = "source")
From GitHub:
# remotes::install_github("crow16384/kstools")
install.packages("kstools", repos = c('https://crow16384.r-universe.dev', 'https://cloud.r-project.org'))
ks_summary() grouped summary table with optional custom statistics (extras)ks_median_ci(), ks_geom_mean(), ks_q1(), ks_q3(), ks_cv(), ks_z_score(), ks_p_norm(), ks_n_pct()
ks_get_numdec() for decimal precision trackingks_mianalyze() / mianalyze() Rubin pooling across multiple imputations (SAS MIANALYZE analogue; see vignette("mianalyze"))ks_roc() correlated ROC AUC comparison using Mann-Whitney components and contrast testsks_eairdiff_mn() / ks_eairdiff_strata_mn() incidence-rate difference CIsks_newcombe_hs() / ks_newcombe_hs_strata() difference-in-proportion CIsks_auc() linear/log-linear trapezoidal AUCks_dtc2dtn() DTC to Date
ks_supp_consistency_check() and ks_supp_merge() for SUPP domainsks_xpt_content(), ks_extract_single_xpt(), ks_batch_load_from_single_xpt() for multi-member XPT workflowsks_desc_coded() clinical coded-summary table builderks_get_data() and read.csv3()
ks_batch_load() and ks_batch_load_xlsx()
ks_swap_cols(), ks_del_tmp(), ks_aligndec(), ks_sum_na(), %+na%
ks_swoe(), ks_simulate_ar1(), ks_current_filename(), ks_code_to_fmt(), ks_get_labels()
ks_williams() randomized Williams design and schedule generationsource("inst/examples/run_all_examples.R")
From the package root:
# 1) Regenerate Rd files and NAMESPACE from roxygen comments
roxygen2::roxygenise()
# 2) Build vignettes
devtools::build_vignettes()
# 3) Build package site (pkgdown)
pkgdown::build_site()
The pkgdown configuration is in _pkgdown.yml, and vignettes are in vignettes.
Primary imports and suggested packages are declared in DESCRIPTION.
GNU General Public License v3.0 (GPL-3).
See DESCRIPTION and the GPL-3.0 text.