var_loa: Variance of limits of agreement

Description Usage Arguments Value Note Author(s)

Description

var_loa returns variance of limits of agreement (LoA) based on a method proposed by Bland and Altman (1999).

Usage

1
var_loa(n, n_obs, bsv, wsv, output_subjects, var_var_d, bias_alt, beta)

Arguments

n

number of subjects

n_obs

number of observations

bsv

between-subject variance

wsv

within-subject variance

output_subjects

data.table containing subject ID and number of measurements of each subject (m_i)

var_var_d

variance of the variance of mean of all differences

bias_alt

set TRUE for alternative calculation of bias (small within-subject variance) and its variance, set FALSE for standard calculation of bias (small between-subjects variance) and its variance

beta

for 100*(1-beta)%-confidence interval around bias

Value

var_loa variance of limits of agreement

se_d standard error of bias

Note

Function calculates other variables as well (but does not return the,)

Author(s)

Inga Koenemund inga.koenemund@web.de


ikoenemund/blandxtr documentation built on June 13, 2019, 8:53 p.m.