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.
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.