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