Skip to contents

S7 Classes and Constructors

Core S7 data structures for event tables and correlation matrices

CorrelationMatrix()
CorrelationMatrix S7 Class
EventTable()
EventTable S7 Class
as_correlation_matrix()
Convert matrix to CorrelationMatrix object
as_event_table()
Convert Data to EventTable
print.CorrelationMatrix
Print method for CorrelationMatrix

Event Table Generation

Functions for generating event count tables from clinical trial data

generate_event_table()
Generate table of event counts from ADSL and ADTTE datasets
generate_event_table_()
This function creates a table summarizing event counts based on specified hypotheses and user input data. It can handle two types of analysis: one comparing experimental groups to a common control and another analyzing the overlap of populations.
generate_event_table_cc()
This function generates a table of events for given experimental arms and a control group based on specified hypotheses.
generate_event_table_ol()
This function generates a table of events for specified populations based on the provided hypotheses.

Correlation Matrix Computation

Functions for computing correlation matrices from event data

generate_corr()
Generate correlation matrix based on event counts
generate_corr_s7()
Generate S7 CorrelationMatrix from EventTable or event data
compute_correlations()
Compute correlations from event data
gen_corr()
Convert correlation data frame to correlation matrix

Statistical Testing and Analysis

Core statistical procedures for group sequential designs

calc_seq_p()
Calculate sequential p-values for interaction/elementary hypothesis
closed_test()
Perform closed testing procedure
generate_bounds()
Compute p-value boundaries of the parametric MTP method with overall alpha spending for all hypotheses

Data Manipulation and Subsetting

Functions for working with event tables and correlation matrices

subset_event_table()
Subset EventTable by Analysis or Hypotheses
subset_correlation_matrix()
Extract correlation submatrix

Data Validation

Functions for validating and checking data integrity

check_event_data()
Check event data for correlation computation
validate_event_data_core()
Core Event Data Validation Function
validate_event_table_data()
Validate EventTable Data Format

Utility Functions

Internal utility functions for numerical computations

find_astar()
Utility function for root-finding to compute crossing probabilities with the overall alpha spending approach
find_xi()
Utility function for root-finding to compute inflation factor xi with the separate alpha spending approach

Package Information

Package documentation and tidy evaluation helpers

wpgsd wpgsd-package
wpgsd: Weighted Parametric Group Sequential Design
tidyeval enquo enquos .data := as_name as_label
Tidy eval helpers