Skip to contents

By strata and treatment level

Function that operate by strata level and treatment level

n_subj()
Calculate number of subjects by treatment and stratum
n_event()
Calculate number of events by treatment and stratum
n_subj_event()
Calculate number of subjects with events by treatment and stratum
p_subj_event()
Calculate percentage of subjects with events by treatment and stratum
count_set()
Produce counts of Number of subjects, number of events, number of subjects with events, and proportion of subjects with events

By strata, across treatment levels

Function that operate by strata level but across treatment levels

RR()
Relative Risk calculation
OR()
Wrapper for Odds Ratio calculation
RD()
Wrapper for Risk Difference calculation
p_val()
Wrapper for P-value calculations

Across strata, across treatment level

Function that operate across strata levels and across treatment levels

p_val_interaction()
Wrapper for P-value of interaction tests

Building-block functions

These are used as building blocks when making the chef-facing functions. They are exported so that they can also be use in chefCriteria but they cannot be called directly in a chef pipeline

breslowdaytest_()
Breslow-Day test
barnard_test_()
Barnards Unconditional Exact Test with trial data
make_two_by_two_by_k_()
Make 2x2xk contingency tables from summarized adam data. This function is NOT generalized
make_two_by_two_()
Make a two-by-two table
n_subj_()
Building-block: Number of subjects
n_event_()
Building-block: Number of events (multiple events counted multiple times)
n_subj_event_()
Building-block: Number of subjects with at least one event
p_subj_event_()
Building-block: Proportion of subjects having at least one event
use_chefStats()
Make new chefStats functions

Misc

Non-assigned

demographics_continuous()
Calculate summary statistics for demographics on a continuous variable
demographics_counts()
Calculate basic summary statistics for demographics
hedges_g()
Wrapper to prepare data for Hedges G
mean_value()
Calculate mean value
n_event_100y()
Calculate number of events per 100 years of exposure
obs_time_by_trt()
Calculate observation time by treatment
p_subj_event_by_trt()
Calculate percentage of subjects with events
sd_value()
Standard deviation