power_dom {SimTOST} | R Documentation |
Power Calculation for Difference of Means (DOM) Hypothesis Test
Description
Computes the statistical power for testing the difference of means (DOM) between two groups using Monte Carlo simulations. The power is estimated based on specified sample sizes, means, standard deviations, and significance level.
Usage
power_dom(
seed,
mu_test,
mu_control,
sigma_test,
sigma_control,
N_test,
N_control,
lb,
ub,
alpha = 0.05,
nsim = 10000
)
Arguments
seed |
Integer. Seed for reproducibility. |
mu_test |
Numeric. Mean of the test group. |
mu_control |
Numeric. Mean of the control group. |
sigma_test |
Numeric. Standard deviation of the test group. |
sigma_control |
Numeric. Standard deviation of the control group. |
N_test |
Integer. Sample size of the test group. |
N_control |
Integer. Sample size of the control group. |
lb |
Numeric. Lower bound for the equivalence margin. |
ub |
Numeric. Upper bound for the equivalence margin. |
alpha |
Numeric. Significance level (default = 0.05). |
nsim |
Integer. Number of simulations (default = 10,000). |
Value
Numeric. Estimated power (probability between 0 and 1).