Derive mean difference and associated confidence intervals for continuous outcomes

calculate_diff_con(mean1, mean2, sd1, sd2, N1, N2, cl)

Arguments

mean1

(numeric)
Mean of measure in active treatment

mean2

(numeric)
Mean of measure in comparator treatment

sd1

(numeric)
Standard deviation of measure in active treatment

sd2

(numeric)
Standard deviation of measure in comparator treatment

N1

(numeric)
Total number of subjects in active treatment

N2

(numeric)
Total number of subjects in comparator treatment

cl

(numeric)
confidence level

Examples

calculate_diff_con(
  mean1 = 0.6, mean2 = 0.5, sd1 = 0.1, sd2 = 0.3,
  N1 = 400, N2 = 500, cl = 0.95
)
#> [2024-06-28 15:23:49] >
#> CI for treatment difference in continuous outcomes is calculated
#>   diff        se      lower     upper
#> 1  0.1 0.0156539 0.06927751 0.1307225