plotAIP_TGVrnc {LDLcalc} | R Documentation |
Plots AIP variance versus increasing triglyceride variance
Description
Plots the variance of AIP (both Error Propagation first and second order, as well as Bootstrap variance) versus increasing triglyceride variance.
Usage
plotAIP_TGVrnc(TGVars, AIPVrncErrProp, AIPVrncErrProp2Ord, AIPbootVrnc)
Arguments
TGVars |
A data frame with increasing variances of triglycerides. |
AIPVrncErrProp |
A vector with the first order error propagation variances of AIP when the triglyceride variance increases. |
AIPVrncErrProp2Ord |
A vector with the second order error propagation variances of AIP when the triglyceride 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
# AIP - TG Variance
TGVariances = CV_Range(sampleA$TG,15,16,plot=FALSE)
AIPVrncChngTGVrnc = AIP_TGVrnc(TGVariances,sampleA$HDL,bootStrpReps = 2000)
TGErrPropVrnc = AIPVrncChngTGVrnc$ErrPropVrnc
TGErrPropVrnc2Ord = AIPVrncChngTGVrnc$ErrPropVrnc2Ord
TGBootVrnc = AIPVrncChngTGVrnc$BootVrnc
plotAIP_TGVrnc(TGVariances,TGErrPropVrnc,TGErrPropVrnc2Ord,TGBootVrnc)
[Package LDLcalc version 2.1 Index]