power.weighted: Exact weighted power; standard 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.

Usage

1
power.weighted(alpha, theta1, theta2, density, sigma, n)

Arguments

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

Value

Exact power of the TOST for a weighted true mean-difference

Examples

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)

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