junco



Overview
The junco R package contains analysis functions to create tables and
listings used for clinical trial reporting. It complements the tern
package by providing additional statistical analysis capabilities.
The package provides a range of functionality, such as:
- Statistical analysis (ANCOVA, MMRM, Cox regression, Kaplan-Meier,
CMH stratified proportion difference estimation)
- Calculation of odds ratios, relative risks, and proportion
differences
- Event incidence rate analysis
- Support optional SAS (to-nearest-value) and IEC (to-nearest-even)
rounding
- Frequency tabulations and summarizations
- Reference-based multiple imputation (RBMI) for handling missing
data
- Production-ready RTF and DOCX exporter for listings and tables (see
tt_to_tbldf
and junco::export_as_docx_j)
- Creation of tables, listings, and graphs (TLGs)
Installation
Either you can install the stable CRAN version
install.packages("junco") #CRAN Release
Or you can install the development version from GitHub:
require('remotes')
remotes::install_github("johnsonandjohnson/junco", ref = "dev") #for the rolling dev release
Usage
To understand how to use this package, please refer to the vignettes
(also available on the pkgdown site). You can list them locally
with:
browseVignettes(package = "junco")
Key vignettes and what they cover:
- Getting started with junco — overview and basic workflow
- Article:
https://johnsonandjohnson.github.io/junco/articles/junco.html
- What you’ll learn: how to set up data, create common analyses, and
produce TLG-ready outputs using core helpers.
- Table and listing customizations — controlling layouts and styles
- Article:
https://johnsonandjohnson.github.io/junco/articles/table_and_listing_customizations.html
- What you’ll learn: how to customize headers, footers, column
formatting, pagination, and how to export tables and listing to RTF and
DOCX.
- Auto column widths — making table columns fit content automatically
- Article:
https://johnsonandjohnson.github.io/junco/articles/auto_colwidths.html
- What you’ll learn: techniques and options for automatically sizing
column widths for cleaner RTF/DOCX outputs.