phi_func: Calculate overdispersion ratio

Description Usage Arguments Value

View source: R/od_adjustment.R

Description

Internal function to perform the transformations for data types.

Usage

1
phi_func(n, zscores)

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.

Value

A numeric phi value


FunnelPlotR documentation built on Sept. 30, 2021, 5:07 p.m.