estimateSampleSize: Estimate sample size for Bland-Altman limits of agreement...

View source: R/estimateSampleSize.R

estimateSampleSizeR Documentation

Estimate sample size for Bland-Altman limits of agreement test

Description

Estimate sample size for Bland-Altman limits of agreement test

Usage

estimateSampleSize(mu, SD, delta, power = 0.8, gamma = 0.05,
  alpha = 0.05, iterMax = 100, tolerance = 0.001, approx = "t",
  method = "Lu", debug = FALSE, parallel = TRUE, ncores = NULL)

Arguments

mu

mean of differences

SD

standard deviation of differences

delta

pre-determined clinical agreement interval

power

the pre-determined power

gamma

alpha level of Bland-Altman LOA

alpha

alpha level of LOA confidence intervals

iterMax

maximum number of iterations

tolerance

tolerance for how close the power estimate should be to the input

approx

normal or t distribution

method

whether to use the Lu or Wisniewski method for power

debug

logical

parallel

logical

ncores

number of cores to use for parallel computation

Value

a list


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