This is a function to conveniently and quickly compute the absolute relative risk (ARR) and its confidence interval.
arr( expPos, expN, conPos, conN, conf.level = 0.95, digits = 2, printAsPercentage = TRUE ) # S3 method for ufsARR print(x, digits = x$digits, printAsPercentage = x$printAsPercentage, ...)
Number of positive events in the experimental condition.
Total number of cases in the experimental condition.
Number of positive events in the control condition.
Total number of cases in the control condition.
The confidence level for the confidence interval.
The number of digits to round to when printing the results.
Whether to multiply with 100 when printing the results.
The result of the call to
Any additional arguments are neglected.
An object with in
estimate, the ARR, and in
ufs::arr(10, 60, 20, 60); #> Absolute Risk Reduction = [1.46; 31.87] (point estimate: 16.67)