Skip to contents

All functions

bar_from_summary()
Bar percentage from summary data
bar_mean_multiple_vars() bar_mean_multiple_vertical()
Bar graph of means of multiple variables
bar_mean_single()
Bar graph of mean of a single var
bar_proportions_multiple()
Bar proportions multiple
bar_share_elevated()
Produce bar graph of % of sts with elevatved or expected mm scores
bar_share_elevated_multiple()
Produce bar graph of multiple % of sts with elevatved or expected scores
calculate_age()
Calculate age from date of birth and date of record
create_collapsed_summary()
Collapsed summary (percentages of successes) for proportion graphs
create_full_summary()
Full summary counts across all categories
data_prep() who_score() mm_score() sehs_primary() sehs_secondary() asw_score() sdq_score() fas_score()
Data preparation phase
date_range()
Generate text to describe input date range
geom_bar_t()
Thinner geom_bar
get_hbsc_prop()
Get the HBSC Scotland proportion by gender for provided response
get_hbsc_score()
Get the HBSC Scotland score by gender for provided response
group_classes()
Create a vector of nicely named, class groupings
hbsc_scotland
HBSC Scotland 2020 summary statistics
hbsc_scotland_modified
Modified HBSC Scotland dataset
how_many_valid()
Return count of non-NA values
prep_hbsc()
reshape hbsc summary data
pri_valid_responses
Simulated responses for primary survey testing
print_first_graph() print_rest_of_graphs()
Print multiple graphs across chunks
quiet_means()
Find the mean of only the numeric entries, no warnings
render_report()
Render a single report for school or local authority
run()
Run
scale_colour_hbsc()
Standard categorical fill scale
scale_fill_hbsc()
Standard categorical fill scale
sec_valid_responses
Simulated responses for secondary survey testing
share_elevated()
Produce table of % of sts with elevatved or expected mm scores
share_elevated_multiple()
Proportions in each subgroup with elevated results across multiple vars
summary_mean_multiple_vars()
Table of means for multiple variables
summary_mean_single_var()
Summary table of means for a single variable
summary_proportions_multiple()
Table of % categories for multiple variables
tab_categories()
Table of class by gender counts
tab_categories_grouped()
Table of grouped classes by gender counts
tab_responses()
Generate table reporting survey response rate
table_from_summary()
A table of percentages from summary data
valid_numbers()
Return only numeric values, no warnings
duration_too_short() no_test_responses() partial_cases() duplicate_cases() suggest_missing_class() age_year_mismatch() straightlining() recurring_postcodes() no_consent() has_school_id() valid_dob() completed_outside_school_hours() completed_at_weekend()
Validators