Learn R Programming

maicplus (version 0.1.2)

find_SE_from_CI: Calculate standard error from the reported confidence interval.

Description

Comparator studies often only report confidence interval of the treatment effects. This function calculates standard error of the treatment effect given the reported confidence interval. For relative treatment effect (i.e. hazard ratio, odds ratio, and risk ratio), the function would log the confidence interval. For risk difference and mean difference, we do not log the confidence interval. The option to log the confidence interval is controlled by 'log' parameter.

Usage

find_SE_from_CI(CI_lower = NULL, CI_upper = NULL, CI_perc = 0.95, log = TRUE)

Value

Standard error of log relative treatment effect if 'log'

is true and standard error of the treatment effect if 'log'

is false

Arguments

CI_lower

Reported lower percentile value of the treatment effect

CI_upper

Reported upper percentile value of the treatment effect

CI_perc

Percentage of confidence interval reported

log

Whether the confidence interval should be logged. For relative treatment effect, log should be applied because estimated log treatment effect is approximately normally distributed.

Examples

Run this code
find_SE_from_CI(CI_lower = 0.55, CI_upper = 0.90, CI_perc = 0.95)

Run the code above in your browser using DataLab