Learn R Programming

LDLcalc (version 2.1)

plotCholVrncToLDL: Plots LDL variance versus increasing cholesterol variance

Description

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

Usage

plotCholVrncToLDL(dfCholVars, LDLCHOLVrncErrProp, LDLCHOLVrncBoot)

Value

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

Arguments

dfCholVars

A data frame with increasing variances of cholesterol.

LDLCHOLVrncErrProp

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

LDLCHOLVrncBoot

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

Examples

Run this code
# \donttest{
# For HDL - CHOL:
# Make the DF of ascending variances for CHOL of sample
CHOLVariances = CV_Range(sampleA$CHOL,1,10,plot=FALSE)
LDLCHOLDependance = LDL_CHOLVrnc(CHOLVariances, sampleA$HDL, sampleA$TG, bootStrpReps=2000)
plotCholVrncToLDL(CHOLVariances,LDLCHOLDependance$ErrPropVrnc,LDLCHOLDependance$BootVrnc)
# }

Run the code above in your browser using DataLab