powered by
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, ...)
# S3 method for ufsARR print(x, digits = x$digits, printAsPercentage = x$printAsPercentage, ...)
An object with in estimate, the ARR, and in conf.int, the confidence interval.
estimate
conf.int
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 arr.
arr
Any additional arguments are neglected.
ufs::arr(10, 60, 20, 60);
Run the code above in your browser using DataLab