w.approx.cer: Calculate the CER (Control Event Rates)

Description Usage Arguments Details Value

View source: R/personograph.R


Calculates the CER from the data, this is a approximation of absolute risk in the control population (from 0 to 1).


w.approx.cer(ev.ctrl, n.ctrl)



Vector of event rates in the control group (/arm)


Vector of sample sizes in the control group (/arm)


By default it uses a weighted median of the indivdual control event rates. The weighted median has the benefit of always returning an event rate that actually did occur. However, it is possible that this might return a CER of 0. In this case we fall back to a weighted mean, and throw a warning. If this too returns a CER of 0, it probably means that there was not enough data to estimate the control risk accurately. In this case we recommend you obtain an estimate of the risk in the control group, for example from an observational study or expert opinion.


Approximated Control Event Rates (CER)

personograph documentation built on May 29, 2017, 12:37 p.m.