plotAIP_TGVrnc | R Documentation |
Plots the variance of AIP (both Error Propagation first and second order, as well as Bootstrap variance) versus increasing triglyceride variance.
plotAIP_TGVrnc(TGVars, AIPVrncErrProp, AIPVrncErrProp2Ord, AIPbootVrnc)
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. |
The function creates a plot with the AIP error propagation and bootstrap variances versus increasing triglyceride variance.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.