plotHDLVrncToLDL {LDLcalc} | R Documentation |
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)
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. |
Value
The function creates a plot with the LDL error propagation and bootstrap variances versus increasing HDL variances.
Examples
## 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)
[Package LDLcalc version 2.1 Index]