table2_helper_cumrisk.RdHelper function for make_table2.cumrisk
table2_helper_cumrisk(
fit_models,
effect_measure_type = "RD",
rate_round = 2,
pt_round = 0,
pt_scale = 1,
risk_round = 1,
risk_time = NULL,
alpha = 0.05,
rate_alpha = 0.05,
ref = 1,
boot_method = "normal",
caption = "",
table_footer = "",
calc_rate_ci = FALSE,
scale_pt_display = TRUE
)a list of fit cumrisk objects
A string identifying the type of effect measure to be computed from among the following options for a given method.
cumrisk: "RD" (risk difference), "RR" (risk ratio), "logRR"
(logarithm of the risk ratio), or "AR" (attributable risk)
cumcount: "CD" (count difference) or "CR" (count ratio)
Note that when a given input results object was created using bootstrap
estimation and boot_method is "log-normal", then only effect measures
with support on the positive real line can be used (i.e. "RR" or "CR").
See the Cumulative risk effect measure types and Cumulative count effect
measure types sections for the definitions of the various effect measures.
The number of significant digits used for rounding the rate
The number of significant digits used for rounding person-time
A scaling factor for the person time (default pt_scale = 1).
The number of significant digits used for rounding the risk
The desired time at which to extract the cumulative risk and
effect measures. If NULL, uses the median time in the cumrisk object.
The desired nominal significance level of the confidence intervals.
The desired nominal significance level of the confidence intervals for the rate
The index of the treatment group to use as the reference for
effect measure calculations, where groups are ordered lexicographically by
their labels (default ref = 1).
The specific bootstrap approach used to compute confidence
intervals, for both the cumulative risk or count estimates and the effect
measures. Options are "normal" (default; normal approximation on the
original scale), "log-normal" (normal approximation on the log scale),
"percentile" (percentile-based approach using quantiles of the bootstrap
distribution), and "basic" (basic bootstrap using the reflection method).
When a given input results object was created without using bootstrap
estimation then the value of boot_method is ignored. Note that
when a given input results object was created using bootstrap estimation
and boot_method is "log-normal", then only effect measures specified
via effect_measure_type with support on the positive real line can be
used.
Text that will be added above the top left of the table, ie a title to the table
Additional footer information accepts html formatting
Logical that allows user to output confidence intervals for rates in table 2. Defaults to FALSE.
Logical that allows user to turn off pt_scale for person-time but not for rate (default = TRUE)
The resulting table as data.frame which can be passed to table rendering functions such as datatable or kable.