plotHDLVrncToLDL | R Documentation |
Plots the variance of LDL (both Error Propagation and Bootstrap variance) versus increasing HDL variance.
plotHDLVrncToLDL(dfHDLVars, LDLHDLVrncErrProp, LDLHDLVrncBoot)
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. |
The function creates a plot with the LDL error propagation and bootstrap variances versus increasing HDL variances.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.