# Sample size for a `"2-side"` test
coxph_size(hr = 2, hr0 = 1, pE = 0.8, pA = 0.5,
alpha = 0.05, beta = 0.2, test_type = "2-side")
# Power of `"2-side"` test
coxph_size(hr = 2, hr0 = 1, pE = 0.8, pA = 0.5,
alpha = 0.05, n = 82, test_type = "2-side")
# Sample size for `"non-inferiority"` test
coxph_size(hr = 2, hr0 = 1, pE = 0.8, pA = 0.5,
alpha = 0.025, beta = 0.2, test_type = "non-inferiority")
# Power of `"non-inferiority"` test
coxph_size(hr = 2, hr0 = 1, pE = 0.8, pA = 0.5,
alpha = 0.025, n = 82, test_type = "non-inferiority")
# Sample size for `"equivalence"` test
coxph_size(hr = 1, delta = 0.5, pE = 0.8, pA = 0.5,
alpha = 0.05, beta = 0.2, test_type = "equivalence")
# Power of `"equivalence"` test
coxph_size(hr = 1, delta = 0.5, pE = 0.8, pA = 0.5,
alpha = 0.05, n = 172, test_type = "equivalence")
Run the code above in your browser using DataLab