Description Usage Arguments Value References Examples
View source: R/schuirmann_const.R
Calculation of the schuirmann-constant, cf. \insertCitepalmes2020schuirmann.constant
1 | schuirmann.constant(alpha, pwr, density)
|
alpha |
type I error |
pwr |
asymptotic weighted power of the TOST |
density |
a-priori density for the mean-difference |
The Schuirmann constant
1 2 3 4 5 6 7 8 9 10 | rho <- apriori.density('U')
theta1 <- 0
theta2 <- 3
s <- schuirmann.constant(alpha = 0.05, pwr = 0.8, density = rho)
theta0 <- (1-s)*theta1 + s*theta2
n <- n.point(alpha = 0.05, theta1 = theta1, theta2 = theta2, theta0 = theta0, sigma = 1, pwr = 0.8)
## Note that the weighted power is calculated with a sample size that was found for a
## point-difference. Due to the newly introduced duality concept it is -nevertheless-
## very close to the target power 0.8.
power.weighted(alpha = 0.05, theta1 = theta1, theta2 = theta2, density = rho, sigma = 1, n = n)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.