This is an internal generic and should not be called directly. Depending on the different percent change cutoff requested by the user, this function calculates the relative change according clinical significance category for each patient.
calc_percentage(data, pct_improvement, pct_deterioration, direction)
An object of classm cs_percentage
list with participant-wise info
on clinical significant change catergory
A pre-processed data frame with at least columns change
and
pre
Numeric, the required percent change cutoff to infer an improvement
Numeric, the required percent change cutoff to infer a deterioration