Learn R Programming

LDLcalc (version 2.1)

plotTGVrncToLDL: 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)

Value

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

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.

Examples

Run this code
# \donttest{
## 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)
# }

Run the code above in your browser using DataLab