powered by
Calculate expected number of features showing balance difference greater than a threshold
expected_feature_diff(n.feature, n.arm1, n.arm2, threshold)
(numeric) total number of features
numeric
(numeric) number of patients in comparison arm.
(numeric) number of patients in control arm
(numeric) positive number(s) for threshold to compare to.
return a numeric vector for expected number of unbalanced features
# NOT RUN { expected_feature_diff(n.feature = 10, n.arm1 = 240, n.arm2 = 300, threshold = 0.2) expected_feature_diff(n.feature = 10, n.arm1 = 240, n.arm2 = 300, threshold = c(0.1, 0.25)) # }
Run the code above in your browser using DataLab