# Power calculation using asymptotic normal method
power2MixedContinuousBinary(
n1 = 100,
n2 = 100,
delta = 0.5,
sd = 1,
p1 = 0.6,
p2 = 0.4,
rho = 0.5,
alpha = 0.025,
Test = 'AN'
)
# \donttest{
# Power calculation with Fisher's exact test (computationally intensive)
power2MixedContinuousBinary(
n1 = 50,
n2 = 50,
delta = 0.5,
sd = 1,
p1 = 0.6,
p2 = 0.4,
rho = 0.5,
alpha = 0.025,
Test = 'Fisher',
nMC = 5000
)
# }
Run the code above in your browser using DataLab