power.weighted.nabla: Exact weighted power; sensitivity parameterization

Description Usage Arguments Value Examples

View source: R/mean_diff_weighted.R

Description

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. The calculation is performed in the TOST sensitivity parameterization.

Usage

1
power.weighted.nabla(alpha, density, nabla, n)

Arguments

alpha

type I error

density

a-priori density for the mean-difference

nabla

TOST sensitivity index

n

sample size in each group

Value

Exact power of the TOST for a weighted mean-difference

Examples

1
2
3
4
5
6
7
rho <- apriori.density('U')
power.weighted.nabla(alpha = 0.05, density = rho, nabla = 8, n = 22)
## Since we are performing a weighted power calculation, the r respectively 
## theta0 value is not needed. Thus, the following calculation does not depend
## on r.
l <- nabla.to.standard(r = 0.99, nabla = 8, theta1 = -1, theta2 = 4, n = 22)
power.weighted(alpha = 0.05, theta1 = -1, theta2 = 4, density = rho, sigma = l$sigma, n = 22)

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