Learn R Programming

FunnelPlotR (version 0.5.0)

phi_func: Calculate overdispersion ratio

Description

Internal function to perform the transformations for data types.

Usage

phi_func(n, zscores)

Value

A numeric phi value

Arguments

n

Single numeric value for the count of the number of groups (and therefore z-scores)

zscores

Vector of z-scores z-scores to be used. Commonly, this would be 'winsorised' first to remove impact of extreme outliers. SHMI truncates instead, but this simply reduced the n as well as the z-score.