Skip to contents

[Stable]

This is an auxiliary function for controlling arguments for the incidence rate, used internally to specify details in s_incidence_rate().

Usage

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,
  time_unit_input = lifecycle::deprecated(),
  time_unit_output = lifecycle::deprecated()
)

Arguments

conf_level

(proportion)
confidence level of the interval.

conf_type

(string)
normal (default), normal_log, exact, or byar for confidence interval type.

input_time_unit

(string)
day, week, month, or year (default) indicating time unit for data input.

num_pt_year

(numeric)
number of patient-years to use when calculating adverse event rates.

time_unit_input

[Deprecated] Please use the input_time_unit argument instead.

time_unit_output

[Deprecated] Please use the num_pt_year argument instead.

Value

A list of components with the same names as the arguments.

See also

Examples

control_incidence_rate(0.9, "exact", "month", 100)
#> $conf_level
#> [1] 0.9
#> 
#> $conf_type
#> [1] "exact"
#> 
#> $input_time_unit
#> [1] "month"
#> 
#> $num_pt_year
#> [1] 100
#>