plotTGVrncToLDL {LDLcalc}R Documentation

Plots LDL variance versus increasing triglyceride variance

Description

Plots the variance of LDL (both Error Propagation and Bootstrap variance) versus increasing triglyceride variance.

Usage

plotTGVrncToLDL(dfTGVars, LDLTGVrncErrProp, LDLTGVrncBoot)

Arguments

dfTGVars

A data frame with increasing variances of triglycerides.

LDLTGVrncErrProp

A vector with the error propagation variances of LDL when the triglyceride variance increases.

LDLTGVrncBoot

A vector with the bootstrap variances of LDL when the triglycerides variance increases.

Value

The function creates a plot with the LDL error propagation and bootstrap variances versus increasing triglyceride variances.

Examples


## For LDL - TG:
# Make the DF of ascending variances for TG of sample
TGVariances = CV_Range(sampleA$TG,15,16,plot=FALSE)
# Get the Error Propagation and the Bootstrap variance of LDL relative to TG
LDLTGSampleDependance = LDL_TGVrnc(TGVariances,sampleA$CHOL, sampleA$HDL, bootStrpReps =2000)
plotTGVrncToLDL(TGVariances,LDLTGSampleDependance$ErrPropVrnc,LDLTGSampleDependance$BootVrnc)


[Package LDLcalc version 2.1 Index]