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

View source: R/simulatePowerCurve.R

simulatePowerCurveR Documentation

Estimate power curve for Bland-Altman limits of agreement test

Description

Estimate power curve for Bland-Altman limits of agreement test

Usage

simulatePowerCurve(nMin, nMax, stepsize, mu, SD, delta, gamma = 0.05,
  alpha = 0.05, nsims = 1000, 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

nsims

number of simulations per sample size

parallel

logical

ncores

number of cores to use in parallel computation

Value

a dataframe


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