AIP_DensityPlotOfbootst {LDLcalc} | R Documentation |
Plot density of bootstrap and empirical variance for AIP
Description
Plot density of the bootstrap variance for AIP along with the median, 2.5 and 97.5 percentile as vertical lines. Also plots the empirical variance as a segment from the bottom to the middle of the graph and the error propagation variance as a line segment from the top to the middle of the graph. DF must the dataframe of the list returned from the respective (LDL or AIP) Bootstrap variance function.
Usage
AIP_DensityPlotOfbootst(
DF,
title = "",
empirVrnc,
errPropVrnc,
errPropVrnc2Ord
)
Arguments
DF |
A data frame containing the bootstrap variances of AIP. |
title |
Title of the plot (default=""). |
empirVrnc |
Value of the empirical (experimental) variance of AIP. |
errPropVrnc |
Value of the first order error propagation variance of AIP. |
errPropVrnc2Ord |
Value of the second order error propagation variance of AIP. |
Value
Plots the respective plot.
Examples
## Not run:
sampleA$AIP = AIPcalc(sampleA$TG,sampleA$HDL, SI=FALSE)
AIP_empirVrnc=var(sampleA$AIP)
AIP_errPropVrnc=AIPErrPrp(sampleA$TG,sampleA$HDL, SI=FALSE)
AIP_errPropVrnc2Ord=AIPErrPrp2Ord(sampleA$TG,sampleA$HDL, SI=FALSE)
DfAIPboost=as.data.frame(AIPbootVrnc(sampleA$TG,sampleA$HDL, SI=FALSE))
AIP_DensityPlotOfbootst(DfAIPboost,"Title",AIP_empirVrnc, AIP_errPropVrnc, AIP_errPropVrnc2Ord)
## End(Not run)
[Package LDLcalc version 2.1 Index]