Learn R Programming

FunnelPlotR (version 0.5.0)

transformed_zscore: Transformation function for z-scoring

Description

Internal function to perform the transformations for data types.

Usage

transformed_zscore(
  mod_plot_agg = mod_plot_agg,
  data_type = "SR",
  sr_method = "SHMI"
)

Value

A data.frame of original, aggregated data plus transformed z-score (unadjusted for overdispersion)

Arguments

mod_plot_agg

Aggregated model input data

data_type

Type of data for adjustment and plotting: Indirectly Standardised ratio (\"SR\"), proportion (\"PR\"), or ratio of counts (\"RC\").

sr_method

Adjustment method, can take the value \"SHMI\" or \"CQC\". \"SHMI\" is default.