# Example 1: Find required sample size
power_agreement_exact(delta = 7, mu = 0.5, sigma = 2.5,
p0_star = 0.95, power = 0.80, alpha = 0.05)
# Example 2: Calculate power for given sample size
power_agreement_exact(n = 15, delta = 0.1, mu = 0.011,
sigma = 0.044, p0_star = 0.80, alpha = 0.05)
# Example 3: Find required delta for given power and sample size
power_agreement_exact(n = 50, mu = 0, sigma = 2.5,
p0_star = 0.95, power = 0.90, alpha = 0.05)
Run the code above in your browser using DataLab