plotAIP_HDLVrnc {LDLcalc} | R Documentation |
Plots AIP variance versus increasing HDL variance
Description
Plots the variance of AIP (both Error Propagation first and second order, as well as Bootstrap variance) versus increasing HDL variance.
Usage
plotAIP_HDLVrnc(dfHDLVars, AIPVrncErrProp, AIPVrncErrProp2Ord, AIPbootVrnc)
Arguments
dfHDLVars |
A data frame with increasing variances of HDL. |
AIPVrncErrProp |
A vector with the first order error propagation variances of AIP when the HDL variance increases. |
AIPVrncErrProp2Ord |
A vector with the second order error propagation variances of AIP when the HDL variance increases. |
AIPbootVrnc |
A vector with the bootstrap variances of AIP when the triglyceride variance increases. |
Value
The function creates a plot with the AIP error propagation and bootstrap variances versus increasing triglyceride variance.
Examples
HDLVariances = CV_Range(sampleA$HDL,15,25,plot=FALSE)
AIPVrncChngHDLVrnc = AIP_HDLVrnc(HDLVariances,sampleA$TG, bootStrpReps=2000)
HDLErrPropVrnc = AIPVrncChngHDLVrnc$ErrPropVrnc
HDLErrPropVrnc2Ord = AIPVrncChngHDLVrnc$ErrPropVrnc2Ord
HDLBootVrnc = AIPVrncChngHDLVrnc$BootVrnc
plotAIP_HDLVrnc(HDLVariances,HDLErrPropVrnc,HDLErrPropVrnc2Ord,HDLBootVrnc)
[Package LDLcalc version 2.1 Index]