schuirmann.constant: Calculation of the schuirmann-constant

Description Usage Arguments Value References Examples

View source: R/schuirmann_const.R

Description

Calculation of the schuirmann-constant, cf. \insertCitepalmes2020schuirmann.constant

Usage

1

Arguments

alpha

type I error

pwr

asymptotic weighted power of the TOST

density

a-priori density for the mean-difference

Value

The Schuirmann constant

References

\insertAllCited

Examples

 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)

cpalmes/schuirmann.constant documentation built on Dec. 31, 2020, 10:07 p.m.