powered by
This is an auxiliary function for controlling arguments for the incidence rate, used internally to specify details in s_incidence_rate().
s_incidence_rate()
control_incidence_rate( conf_level = 0.95, conf_type = c("normal", "normal_log", "exact", "byar"), input_time_unit = c("year", "day", "week", "month"), num_pt_year = 100 )
A list of components with the same names as the arguments.
(proportion) confidence level of the interval.
proportion
(string) normal (default), normal_log, exact, or byar for confidence interval type.
string
normal
normal_log
exact
byar
(string) day, week, month, or year (default) indicating time unit for data input.
day
week
month
year
(numeric(1)) number of patient-years to use when calculating adverse event rates.
numeric(1)
incidence_rate
control_incidence_rate(0.9, "exact", "month", 100)
Run the code above in your browser using DataLab