Skip to contents

Reporting functions

Functions for use in parametrized reports

n_valid()
get sum of valid (not NAs) of a vector
n_agree()
get number of agreement answers (defined by a cutoff) in a vector
n_missing()
get number of NAs in a vector (complement to n_valid())
prop_agree()
get (proportion) percentage agreement of answers in a vector - 'agreement' to be defined by cutoff

Data visualization

Functions for taking your figures to a higher level

Handy helpers

file_created_on()
Adds 'file_created_on'-variable to a tidy dataframe
get_model_table()
create a tidy table out of the glmer-object to plot
get_model_dotplot()
Create ranef-dotplot from model
ggCaterpillar()
ggCaterpillar plot from random effects model
journal_format()
Format numbers according to journal requirements
redcap_fill_username()
Complete redcap usernames based on csv-filled-lists with names and email addresses