Description Usage Arguments Details Value References Examples
View source: R/schuirmann_const.R
Calculation of the uniform schuirmann-constant, cf. \insertCitepalmes2020schuirmann.constant
1 | schuirmann.constant.uniform(alpha, pwr, theta1 = 0, theta2 = 1)
|
alpha |
type I error |
pwr |
asymptotic weighted power of the TOST |
theta1 |
lower limit of equivalence interval |
theta2 |
upper limit of equivalence interval |
The uniform density is assumed as a-priori distribution. This density is unique with the property that each possible mean-difference is equally weighted. It represents the lack of any information about the true mean-difference. Due to its importance, this special setting is included as a separate function for convenience. Technical, this function is merely a wrapper that calls the schuirmann.constant function with the uniform distribution as a-priori density.
The Schuirmann constant of the uniform a-priori distribtion is returned. If [theta1, theta2] differs from [0,1], then the appropriately scaled true-mean difference
theta0 = (S-1)*theta1 + S*theta2
is returned.
1 2 3 4 5 6 | rho <- apriori.density('U')
theta1 <- 0
theta2 <- 3
s <- schuirmann.constant(alpha = 0.05, pwr = 0.8, density = rho)
(1-s)*theta1 + s*theta2
schuirmann.constant.uniform(alpha = 0.05, pwr = 0.8, theta1 = theta1, theta2 = theta2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.