estimatePowerCurve: Estimate power curve for Bland-Altman limits of agreement...

View source: R/estimatePowerCurve.R

estimatePowerCurveR Documentation

Estimate power curve for Bland-Altman limits of agreement test

Description

Estimate power curve for Bland-Altman limits of agreement test

Usage

estimatePowerCurve(nMin = 10, nMax = 100, stepsize = 1, mu, SD,
  delta, gamma = 0.05, alpha = 0.05, approx = "t", method = "Lu",
  parallel = TRUE, ncores = NULL)

Arguments

nMin

minimum sample size

nMax

maximum sample size

stepsize

number of samples to step between nMin and nMax

mu

mean of differences

SD

standard deviation of differences

delta

pre-determined clinical agreement interval

gamma

alpha level of Bland-Altman LOA

alpha

alpha level of LOA confidence intervals

approx

normal or t distribution

method

whether to use the Lu or Wisniewski method for power

parallel

logical

ncores

number of cores for parallel computation

Value

a dataframe


nwisn/blandPower documentation built on Jan. 27, 2024, 4:33 a.m.