Reproduce analysis

Functions for reproducing and inspecting the analysis

get_plan()

Get the analysis plan

reproduce_analysis()

Reproduce the analysis

copy_analysis()

Copy analysis directory structure

delete_analysis()

Delete analysis directory structure

Data preparation

Functions to prepare raw data for analysis

transform_data()

Transform raw data

combine_wrt()

Combine grade-specific WRT scores

recode_analyze()

Recode variable analyze

recode_education_mother()

Recode variable education_mother

create_nationality()

Create variable nationality

create_psy_vars()

Create variables indicating psychopath. problems

create_sld_vars()

Create variables indicating SLD status

filter_data()

Filter data

Statistics

Functions for doing the statistical analysis

get_corr_table()

Correlation table

fisher_test()

Fisher's exact test

adj_inv_sinh_ci_or()

Confidence interval for odds ratios

trend_test()

Trend test for ordered r x 2 contingency table

posthoc_test()

Post hoc tests for a 3 x 2 contingency table trend test

glm_poisson()

Poisson regression

tidy_glm()

Tidy GLM results

correct_mult_comp()

Multiple comparison correction

Tables

Functions for preparing and adding tables for manuscript

add_table_1()

Table 1

add_table_2()

Table 2

add_table_3()

Table 3

add_table_sup()

Supplemental Table

add_table_manuscr()

Add tables to manuscript

add_table_suppl()

Add table to supplemental

body_add_caption_table()

Table caption

body_add_footnote()

Table footnote

Figures

Functions for preparing and adding figures for manuscript

plot_figure_1()

Plot for Figure 1

plot_figure_2()

Plot for Figure 2

plot_figure_3()

Plot for Figure 3

add_figure_1()

Figure 1

add_figure_2()

Figure 2

add_figure_3()

Figure 3

add_figure_all()

Add figures

body_add_caption_figure()

Figure caption

export_tiff_figure()

Export `.tiff`` figure

Manuscript text

Functions for adding analyis results to the manuscript

add_text()

Add text blocks to manuscript

add_text_descriptives()

Descriptive statistics for manuscript text

add_text_exclusion()

Numbers of excluded participants for manuscript text

add_text_correlation()

Range of correlation coefficients for manuscript text

count_filter()

Number of excluded participants

count_filter_results()

Number of excluded participants per exclusion criterion

report_range_corr()

Range of correlation coefficients

add_text_fisher()

Results of Fisher's exact test for manuscript text

report_fisher_or()

Odds ratio and CI for Fisher's exact test

report_fisher_or_range()

Range of odds ratios from Fisher's exact test for specific psychopathology

add_text_trend()

Results of trend test for manuscript text

report_trend_sign()

z-score and p-value for trend test

report_trend_or()

Odds ratio and CI for trend test

add_text_posthoc()

Results of the post hoc tests for manuscript text

report_posthoc()

Odds ratios, CIs, and p-values for post hoc tests

add_text_poisson()

Results of the poisson model for manuscript text

report_poisson()

Parameter estimate, CI, and p-value for the poisson model

Utility functions

get_n_perc_filter()

Compute number and percentage

get_percent()

Compute percentage