Description Usage Arguments Value Examples
View source: R/mean_diff_weighted.R
Calculates the exact power of an unpaired, balanced TOST with n samples in each group, where the true mean-difference is modeled with an a-priori density rather than a fixed mean-difference.
1 | power.weighted(alpha, theta1, theta2, density, sigma, n)
|
alpha |
type I error |
theta1 |
lower limit of equivalence interval |
theta2 |
upper limit of equivalence interval |
density |
a-priori density for the mean-difference |
sigma |
standard deviation of the measurements |
n |
sample size in each group |
Exact power of the TOST for a weighted true mean-difference
1 2 3 | rho <- apriori.density('U')
pwr <- power.weighted(alpha = 0.05, theta1 = -2, theta2 = 2, density = rho, sigma = 1, n = 22)
n.weighted(alpha = 0.05, theta1 = -2, theta2 = 2, density = rho, sigma = 1, pwr = pwr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.