Skip to contents

Applies normativeZScore to every row of a metric table: each row supplies a value plus the covariate columns named by the reference's strata_vars.

Usage

normativeDeviation(metric_table, ref, deviation_z = 2)

Arguments

metric_table

A data.frame with a value column and one column per ref stratification variable.

ref

A GovernedNormativeReference.

deviation_z

Deviation-flag threshold (see normativeZScore()).

Value

metric_table with added z, percentile, deviation_flag and extrapolation columns.