MyNixOS website logo
Description

Clinical and Laboratory Standards Institute (CLSI) EP15-A3 Calculations.

Calculations of "EP15-A3 document. A manual for user verification of precision and estimation of bias" CLSI (2014, ISBN:1-56238-966-1).

CLSIEP15

This package aims on Clinical and Laboratory Standards Institute (CLSI) EP15-A3 Calculations

CLSI EP15-A3 provides guidance on the user verification of precision and the estimation of bias for laboratory test methods. It outlines the steps and procedures that clinical laboratories should follow to evaluate the performance of a test method they intend to implement.

This package is a R implementation of the calculations used in the document

Install

devtools::install_github('clauciorank/CLSIEP15')

library(CLSIEP15)

Usage

Create a table in the specified format

Wider Format

repRun_1Run_2Run_3Run_4Run_5
1140140140141139
2139143138144140
3138141136142141
4138143141143138
5140137136144141

Long Format

repnamevalue
1Run_1140
1Run_2140
1Run_3140
1Run_4141
1Run_5139
2Run_1139
2Run_2143
2Run_3138
2Run_4144
2Run_5140
.........

ferritin_long and ferritin_wider are provided as data in the package and can be used as example

For long format

data <- create_table_ep_15(ferritin_long, data_type = 'long')

For wide format

data <- create_table_ep_15(ferritin_wider)

Precision

Calculate Anova parameters and Imprecision Estimates

aov_t <- calculate_aov_infos(data)

If user repetibility(SR or CVR) < repetibility claim and Within-lab(SWL or CVWL) < Within-lab claim the user has verified manufacture's precision claims if not the upper verification limit (UVL) should be checked

uvl_info <- calculate_uvl_info(aov_return = aov_t, cvr_or_sr = .43, cvwl_or_swl = .7)

Where arguments are the follow:

  • aov_return: Return of calculate_aov_info()

  • nsamp: number of samples in the experiment. Default is 1

  • cvr_or_sr: Desirable CV or S repetability

  • cvwl_or_swl: Desirable CV or S within-lab

Rechek If user repetibility(SR or CVR) < UVL repetibility claim and Within-lab(SWL or CVWL) < UVL Within-lab claim

Bias

For calculating a range for acceptable bias different scenarios and subscenarios are provided by the document

calculate_bias_interval is the function used:

calculate_bias_interval( scenario, nrun, nrep, SWL, SR, nsamples, expected_mean, user_mean, ... )

These are the mandatory parameters:

  • scenario: Choosed scenario from section 3.3 of EP15-A3

  • nrun: Number of runs

  • nrep: number of repetitions per run (n0)

  • SWL: S within laboratory (obtained from anova)

  • SR: S repetability (obtained from anova)

  • nsamples: total number of samples tested usual 1

  • expected_mean: Expected mean or TV

  • user_mean: Mean of all samples (obtained from anova)

  • ... : additional parameters necessary for processing the choosed scenario

Scenario A:

Bona fide reference materials, can vary depending on the information provided by the manufacturer.

  • Sub scenario "u":
    • manufacturer supplies a "standard error," "standard uncertainty" (u), or "combined standard uncertainty" (often denoted as uC ) for the TV
  • Sub scenario "Uk":
    • manufacturer provides an "expanded uncertainty" (U) for the TV and a "coverage factor" (k)
  • Sub scenario "Ucoverage":
    • manufacturer provides an "expanded uncertainty" (U) for the TV and a "coverage percentage"
  • Sub scenario "lowerupper":
    • manufacturer provides an lower and upper limits and a "coverage percentage" (CI)

Example

calculate_bias_interval('A', subscenario = 'Uk', nrun = 7, nrep = 5, SWL = .042, SR = .032, nsamples = 2, exppected_mean = 1, user_mean = .94)

Will return

Error in calculate_se_rm(scenario, additional_args) : For the choosed scenario U and k must be supplied

So we need to pass the requested parameters:

calculate_bias_interval('A', subscenario = 'Uk', nrun = 7, nrep = 5, SWL = .042, SR = .032, nsamples = 2, expected_mean = 1, user_mean = .94, U = 140, k = 1.96)

Scenario B and C

When a reference material's total uncertainty (TV) is determined based on Proficiency Testing (PT) (B) or peer group results from an interlaboratory QC program (C)

Additional parameters necessary are sd_rm and nlab

Example

calculate_bias_interval('C', nrun = 7, nrep = 5, SWL = .042, SR = .032, nsamples = 2, expected_mean = 1, user_mean = .94, sd_rm = .05, nlab = 43)

Scenario D and E

If the TV represents a conventional quantity value (D) or When working with a commercial QC material supplied with a TV for which the standard error cannot be estimated (E)

calculate_bias_interval('E', nrun = 7, nrep = 5, SWL = .042, SR = .032, nsamples = 2, expected_mean = 1, user_mean = .94)

Bias conclusion

If the mean is inside interval object returned in calculate_bias_interval() the result is not significant and the observed bias is inside the manufacture claims.

Metadata

Version

0.1.0

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows