Learn R Programming

LDLcalc (version 2.1)

AIPErrPrp2Ord: Second Order Taylor expansion AIP Error propagation variance

Description

Calculate the second order Taylor Expansion error propagation (delta method) variance of the Atherogenic Index of Plasma.

Usage

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

Value

The variance of AIP using error propagation theory.

Arguments

TG

A vector or data frame column containing the triglyceride (TG) values to be used for the calculation of the variance of the Atherogenic Index of Plasma (AIP) using second order Taylor expansion. 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 the variance of the Atherogenic Index of Plasma (AIP) using second order Taylor expansion. 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).

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

Run this code
if (FALSE) {
AIPpropagationVarTaylor = AIPErrPrp2Ord(sampleA$TG,sampleA$HDL)
}

Run the code above in your browser using DataLab