Functions used in data analysis plan

Screening and recruitment

create_consort_png()

CONSORT diagram

create_exclusions_plot()

Plot with reasons for exclusion

Data processing

label_data()

Label original data

create_trial_datatable()

Selection of all variables used in the analysis

create_tcco2_data()

Load data from tcco2 monitor

make_co2_long()

Combine co2 and trial data into a long-format dataframe

process_primary()

Process data for Primary analysis

process_fanova()

Process data for FANOVA analysis

process_assist()

Process data for anesthesia assistant ratings analysis

process_isas()

Process data for ISAS analysis

process_comfort()

Process data for patient comfort analysis

process_spo2()

Process data for SPO2 analysis

process_troops()

Process data for TROOPS analysis

convert_stratification_factors()

Convert stratification factors

time_to_date()

Convert Time to a datetime object

create_codebook()

Codebook of variables

Participant Characteristics

create_characteristics_table()

Table of participant characteristics

Oxygen device settings

create_oxygen()

Create a table containing variables related to measuring oxygen device settings

create_oxygen_table()

Oxygen flow rate table in wide format

create_oxygen_table_long()

Oxygen flow rate table in long format

create_oxygen_flow_plot()

Oxygen flow rate sequence plot

create_oxygen_proportion_plot()

Oxygen flow rate stacked plot

create_fio2()

Dataframe of fio2 settings

create_fio2_table()

fio2 table in wide format

create_fio2_table_long()

fio2 table in long format

create_oxygen_fio2_plot()

fio2 table in long format

create_co2_plot()

Plot to explore amount of missing co2 data per participant

create_spo2_plot()

Plot to explore amount of missing spo2 data per participant

Models

fit_primary()

Fit model for tcco2 outcomes

fit_fanova()

Functional ANOVA model

fit_isas()

Fit model for ISAS

fit_propodds()

Fit proportional odds models

fit_troops()

Fit model for TROOPS

fit_spo2()

Fit model for spo2

Results

make_plot_co2_peak()

Plot peak co2

make_plot_co2_mean()

Plot mean co2

make_plot_fanova_data()

Plot fanova data

Drake plan

get_analysis_plan()

drake plan