AIPErrPrp: Variance of Atherogenic Index of Plasma (AIP) using Error...

View source: R/AIP.R

AIPErrPrpR Documentation

Variance of Atherogenic Index of Plasma (AIP) using Error Propagation.

Description

Calculate the variance of AIP using Error Propagation (The Delta Method)

Usage

AIPErrPrp(TG, HDL, SI = TRUE, roundDigit = 5)

Arguments

TG

A vector or data frame column containing the triglyceride (TG) values to be used for the calculation of the variance of Atherogenic Index of Plasma (AIP). TG and HDL must be of the same length.

HDL

A vector or data frame column containing the high density lipoprotein (HDL) values to be used for the calculation of variance of the Atherogenic Index of Plasma (AIP). TG and HDL must be of the same length.

SI

Boolean (default=TRUE). AIP is by definition calculated using SI units for TG and HDL (mmol/L). If mg/dl units are provided instead, SI must be set to FALSE.

roundDigit

Decimal digits to round the result to (default = 5).

Value

The variance of AIP using error propagation theory.

References

Casella G, Berger RL. Statistical Inference. 2nd ed. Duxbury Thomson Learning, 2002, Pages 240-245

Joint Commitee for Guides in Metrology. Evaluation of measurement data- Guide to the expression of uncertainty in measurement. 2008.

Joint Commitee for Guides in Metrology. International Vocabulary of Metrology (VIM)- Basic and General Concepts and Associated Terms. 2012.

Examples

## Not run: 
AIPpropagationVar = AIPErrPrp(sampleA$TG,sampleA$HDL)

## End(Not run)

LDLcalc documentation built on May 31, 2022, 5:07 p.m.