LDL_HDLVrnc: Calculate LDL variance when HDL variance changes
Description
This function calculates the variance of LDL using two methods:
Error Propagation and Bootstrap when the HDL distribution changes. It uses a
data frame where each column contains a different set of HDL values of
increasing variance as the column index increases.
Usage
LDL_HDLVrnc(dfHDL, CHOL, TG, bootStrpReps = 2000)
Value
The function returns a list with the Error Propagation variance
(ErrPropVrnc) and the bootstrap variance (BootVrnc).
Each list element is a vector of
length equal to the number of columns of the HDL data frame supplied as
argument (dfHDL) and each vector value corresponds to the respective
variance of the corresponding data frame columns.
Arguments
dfHDL
A data frame where each column contains a different set of
HDL values of increasing variance as the column index increases.
CHOL
A vector or data frame column containing the cholesterol
values to be used for the calculation of the variance of LDL.
TG
A vector or data frame column containing the triglyceride
values to be used for the calculation of the variance of LDL.
bootStrpReps
(Default=2000) Number of bootstrap iterations
for bootstrap variance calculation.