junco0.1.3 package

Create Common Tables and Listings Used in Clinical Trials

a_eair100_j

Exposure-Adjusted Incidence Rate

a_freq_combos_j

Analysis function count and percentage in column design controlled by ...

a_freq_j

Analysis/statistical function for count and percentage in core columns...

a_freq_resp_var_j

Analysis Function for Response Variables

a_freq_subcol_j

Analysis function count and percentage with extra column-subsetting in...

a_maxlev

Calculate Count and Percentage of the Maximum Level of an Ordered Fact...

a_patyrs_j

Patient years exposure

a_proportion_ci_factor

Formatted Analysis Function For Proportion Confidence Interval for Fac...

a_proportion_ci_logical

Formatted Analysis Function For Proportion Confidence Interval for Log...

a_summarize_aval_chg_diff_j

Analysis function 3-column presentation

a_summarize_ex_j

Tabulation for Exposure Tables

a_two_tier

Two Tier Analysis Function

ac_blank_line

Analysis and Content Summary Function Producing Blank Line

analyze_values

Shortcut Layout Function for Standard Continuous Variable Analysis

assert_rbmi

Assert that rbmi package is installed

bspt_pruner

Pruning Function for pruning based on a fraction and/or a difference f...

build_formula

Building Model Formula

c_proportion_logical

c_function for proportion of TRUE in logical vector

c_row_counts_alt

Simple Content Row Function to Count Rows from Alternative Data

c_row_counts

Simple Content Row Function to Count Rows

check_wrap_nobreak

Check Word Wrapping

cmhrms

Cochran-Mantel-Haenszel Row Mean Scores test

cmp_cfun

Summary Analysis Function for Compliance Columns

cmp_post_fun

Split Function for Compliance Columns

colspan_map

Creation of Column Spanning Mapping Dataframe

colspan_var

Creation of Column Spanning Variables

column_stats

Statistics within the column space

complex_scoring_function

Complex Scoring Function

cond_rm_facets

Conditional Removal of Facets

count_fraction

Formatting functions for count and fraction, and for count denominator...

count_pruner

Count Pruner

coxph_hr

Workaround statistics function to add HR with CI

def_colwidths

Define Column Widths

default_stats_formats_labels

Get default statistical methods and their associated formats, labels, ...

default_str_map

Default String Mapping for Special Characters

do_exclude_split

Predicate to Check if Split Should be Excluded

dot-unlist_keep_nulls

Custom unlist function

event_free

Workaround statistics function to time point survival estimate with CI

export_as_docx_j

Export a VTableTree or a listing_df object into docx

export_graph_as_docx

export_graph_as_docx

find_missing_chg_after_avisit

Helper for Finding AVISIT after which CHG are all Missing

fit_ancova

ANCOVA Analysis

fit_mmrm_j

MMRM Analysis

get_ctrl_subset

Get Control Subset

get_mmrm_lsmeans

Extract Least Square Means from MMRM

get_ref_info

Obtain Reference Information for a Global Reference Group

get_titles_from_file

Get Titles/Footers For Table From Sources

get_visit_levels

Get Visit Levels in Order Defined by Numeric Version

h_extract_coxreg_multivar

Extract Estimates from Multivariate Cox Regression Model Fit Object

h_get_covariate_parts

Extraction of Covariate Parts from Character Vector

h_get_design_mat

Helper Function to Create Logical Design Matrix from Factor Variable

h_get_trtvar_refpath

Get Treatment Variable Reference Path

h_odds_ratio

Helper functions for odds ratio estimation

h_summarize_mmrm

Helper Function to Fit the MMRM and Return LS Mean Estimates and Contr...

inches_to_spaces

Conversion of inches to spaces.

insert_blank_line

Insertion of Blank Lines in a Layout

jjcs_num_formats

Numeric Formatting Function

jjcsformat_xx

Utility for specifying custom formats

kaplan_meier

Survival time analysis

keep_non_null_rows

Pruning Function to accommodate removal of completely NULL rows within...

labels

Adding Labels To Variables For Model

leftside

Extract the left-hand side of a formula

lsmeans_helpers

Helpers for Processing Least Square Means

lsmeans_wide_cfun

Content Row Analysis Function for LS Means Wide Table Layouts

lsmeans_wide_first_split_fun_fct

First Level Column Split for LS Means Wide Table Layouts

lsmeans_wide_second_split_fun_fct

Second Level Column Split for LS Means Wide Table Layouts

make_combo_splitfun

Split Function Helper

make_rbmi_cluster

Create a rbmi ready cluster

no_data_to_report_str

No Data to Report String

odds_ratio

Odds ratio estimation

pad_in_rows_fct

Function Factory to Create Padded In Rows Content

par_lapply

Parallelise Lapply

prop_diff_test

Difference test for two proportions

prop_diff

Proportion difference estimation

prop_post_fun

Split Function for Proportion Analysis Columns

prop_ratio_cmh

Relative Risk CMH Statistic

prop_table_afun

Formatted Analysis Function for Proportion Analysis

proposal_argument_convention

Standard Arguments

rbmi_analyse

Analyse Multiple Imputed Datasets

rbmi_ancova_single

Implements an Analysis of Covariance (ANCOVA)

rbmi_ancova

Analysis of Covariance

rbmi_mmrm_single_info

Extract Single Visit Information from a Fitted MMRM for Multiple Imput...

rbmi_mmrm

MMRM Analysis for Imputed Datasets

rbmi_pool

Pool analysis results obtained from the imputed datasets

real_add_overall_facet

Add Overall Facet

relative_risk

Relative risk estimation

remove_col_count

Removal of Unwanted Column Counts

remove_rows

Pruning function to remove specific rows of a table regardless of coun...

resp01_a_comp_stat_factor

Formatted Analysis Function for Comparative Statistic in Response Tabl...

resp01_a_comp_stat_logical

Formatted Analysis Function for Comparative Statistic in Response Tabl...

resp01_acfun

Formatted Analysis and Content Summary Function for Response Tables (R...

resp01_counts_cfun

Content Row Function for Counts of Subgroups in Response Tables (RESP0...

resp01_split_fun_fct

Split Function Factory for the Response Tables (RESP01)

response_by_var

Count denom fraction statistic

rm_levels

Removal of Levels

rm_other_facets_fact

rm_other_facets_fact

s_ancova_j

Junco Extended ANCOVA Function

s_proportion_factor

s_function for proportion of factor levels

s_proportion_logical

s_function for proportion of TRUE in logical vector

s_summarize_ancova_j

ANCOVA Summary Function

safe_prune_table

Safely Prune Table With Empty Table Message If Needed

set_titles

Set Output Titles

short_split_result

Shortcut for Creating Custom Column Splits

smart_colwidths_1page

Colwidths for all columns to be forced on one page.

string_to_title

Title Case Conversion

summarize_coxreg_multivar

Layout Generating Function for TEFOS03 and Related Cox Regression Layo...

summarize_lsmeans_wide

Layout Generating Function for LS Means Wide Table Layouts

summarize_mmrm

Dynamic tabulation of MMRM results with tables

summarize_row_counts

Layout Creating Function Adding Row Counts

tabulate_lsmeans

Tabulation of Least Square Means Results

tabulate_rbmi

Tabulation of RBMI Results

tefos03_afun

Analysis Function for TEFOS03 and Related Table Layouts

tefos03_first_post_fun

First Level Column Split Function for TEFOS03 (mmy) Table Layout

tefos03_second_split_fun_fct

Second Level Column Split Function Factory for TEFOS03 (mmy) Table Lay...

tern_default_stats_formats_labels

Get default statistical methods and their associated formats, labels, ...

theme_docx_default_j

Obtain the default theme for the docx

tidy.pool

Helper method (for broom::tidy()) to prepare a data frame from an `p...

tt_to_flextable_j

Convert a VTableTree or a listing_df object to a flextable

tt_to_tbldf

Create TableTree as DataFrame via gentlg

tt_to_tlgrtf

TableTree to .rtf Conversion

var_relabel_list

Relabel Variables in a Dataset

Structure and formatting requirements for clinical trial table and listing outputs vary between pharmaceutical companies. 'junco' provides additional tooling for use alongside the 'rtables', 'rlistings' and 'tern' packages when creating table and listing outputs. While motivated by the specifics of Johnson and Johnson Clinical and Statistical Programming's table and listing shells, 'junco' provides functionality that is general and reusable. Major features include a) alternative and extended statistical analyses beyond what 'tern' supports for use in standard safety and efficacy tables, b) a robust production-grade Rich Text Format (RTF) exporter for both tables and listings, c) structural support for spanning column headers and risk difference columns in tables, and d) robust font-aware automatic column width algorithms for both listings and tables.

  • Maintainer: Gabriel Becker
  • License: Apache License (>= 2)
  • Last published: 2026-01-15