phi_func: Calculate overdispersion ratio

View source: R/od_adjustment.R

phi_funcR Documentation

Calculate overdispersion ratio

Description

Internal function to perform the transformations for data types.

Usage

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 June 7, 2023, 6:04 p.m.