Skip to contents

Prepare sports injury and illness data

Functions that preprocess and prepare these type of data in a standardized format.

prepare_inj() prepare_exp() prepare_all()
Prepare data in a standardized format

Compute injury summary statistics

Functions to estimate sports injury summary statistics.

calc_summary()
Calculate summary statistics
calc_prevalence()
Calculate prevalence proportion
calc_ncases()
Calculate number of cases
calc_ndayslost()
Calculate number of days lost
calc_mean_dayslost()
Calculate the mean days lost
calc_median_dayslost()
Calculate the median days lost
calc_iqr_dayslost()
Calculate the interquartile range days lost
calc_exposure()
Calculate the exposure time
calc_incidence()
Calculate case incidence rate
calc_burden()
Calculate case burden rate

Visualize sports injury data

Functions to visualize relevant information in sports injury data.

gg_photo()
Plot injuries and illnesses over the follow-up period
gg_riskmatrix()
Plot risk matrices
gg_prevalence()
Plot polar area diagrams representing players' prevalence
gg_rank()
Plot athlete's health problem incidence or burden ranking

Data sets

Internal data sets to illustrate injurytools functionalities.

raw_df_exposures
Minimal example of exposure data
raw_df_injuries
Minimal example of injury data
injd
Example of an injd object

Utilities

Utility functions.

date2season()
Get the season
season2year()
Get the year
cut_injd()
Cut the range of the follow-up
is_injd()
Check if an object is of class injd
get_data_followup()
Extract follow-up data frame
get_data_injuries()
Extract injury/illness data frame
get_data_exposures()
Extract exposures data frame