Internal function to perform the transformations for data types.
transformed_zscore(
mod_plot_agg = mod_plot_agg,
data_type = "SR",
sr_method = "SHMI"
)
A data.frame of original, aggregated data plus transformed z-score (unadjusted for overdispersion)
Aggregated model input data
Type of data for adjustment and plotting: Indirectly Standardised ratio (\"SR\"), proportion (\"PR\"), or ratio of counts (\"RC\").
Adjustment method, can take the value \"SHMI\" or \"CQC\". \"SHMI\" is default.