Learn R Programming

LDLcalc (version 2.1)

plotHDLVrncToLDL: Plots LDL variance versus increasing HDL variance

Description

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

Usage

plotHDLVrncToLDL(dfHDLVars, LDLHDLVrncErrProp, LDLHDLVrncBoot)

Value

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

Arguments

dfHDLVars

A data frame with increasing variances of HDL.

LDLHDLVrncErrProp

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

LDLHDLVrncBoot

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

Examples

Run this code
# \donttest{
## For LDL - HDL:
# Make the DF of ascending variances for HDL of sample
HDLVariances = CV_Range(sampleA$HDL,15,25,plot=FALSE)
# Get the Error Propagation and the Bootstrap variance of LDL relative to HDL
LDLHDLSampleDependance = LDL_HDLVrnc(HDLVariances,sampleA$CHOL, sampleA$TG, bootStrpReps=2000)
plotHDLVrncToLDL(HDLVariances,LDLHDLSampleDependance$ErrPropVrnc,LDLHDLSampleDependance$BootVrnc)
# }

Run the code above in your browser using DataLab