Internal function for funnel plot to build the control limits prior to plotting.
build_limits_lookup(
min_x,
max_x,
min_y,
max_y,
draw_adjusted,
tau2,
data_type,
sr_method,
target,
multiplier,
denominators
)
A data.frame with an index column and various control limits based on the index as an x-axis value.
Minimum predicted value for range of x-axis
Maximum predicted value for range of x-axis
Minimum ratio value for range of y-axis
Maximum ratio value for range of y-axis
TRUE/FALSE Use overdispersion adjustment
If using draw_adjusted, what is the tau2 ("between" standard error) to use?
SR, PR or RC. Used to set target reference
Which adjustment method is being used, SHMI or CQC?
target to be used to set centre line
Multiply ratio value by an amount. Default is 1, but some mortality ratios use 100, for example.