Learn R Programming

LDLcalc (version 2.1)

Calculate and Predict the Low Density Lipoprotein Values

Description

A wide variety of ways to calculate (through equations) or predict (using 9 Machine learning methods as well as a stack algorithm combination of them all) the Low Density Lipoprotein values of patients based on the values of three other metrics, namely Total Cholesterol , Triglycerides and High Density Lipoprotein. It can also calculate the variance of LDL and the Atherogenic Index of Plasma (AIP) using error propagation and bootstrapping.

Copy Link

Version

Install

install.packages('LDLcalc')

Monthly Downloads

75

Version

2.1

License

GPL-3

Maintainer

Petros Paplomatas

Last Published

February 11th, 2024

Functions in LDLcalc (2.1)

SampleData

Anonymous real data
chebyshev

Chebysev's inequality
LDLbootVrnc

Calculate variance of LDL using bootstrapping.
LDLallEq

Calculates and returns the LDL values using all available equations
DensityPlotOfVar

Plot variance density
LDL_ML_predict

Predict LDL value(s)
LDL_ML_Main_StackingAlgorithm

Create, train, assess and return a Stacking Algorithm Machine Learning prediction model
plotCholVrncToLDL

Plots LDL variance versus increasing cholesterol variance
plotHDLVrncToLDL

Plots LDL variance versus increasing HDL variance
plotAIP_HDLVrnc

Plots AIP variance versus increasing HDL variance
plotTGVrncToLDL

Plots LDL variance versus increasing triglyceride variance
model

A trained model
plotAIP_TGVrnc

Plots AIP variance versus increasing triglyceride variance
LDL_TGVrnc

Calculate LDL variance when triglyceride variance changes
LDL_eq

Calculates and returns the LDL Value for any of the 12 different equations
sampleA

Anonymous real data
PlotCorrWithRegrLine

Scatterplot of pairs of parameters
PlotDiscrHist

Plot discrete histogram
sampleB

Anonymous real data
Corr_Plot

Correlation plot
CV

Calculate the CV of a set of values.
AIP_DensityPlotOfbootst

Plot density of bootstrap and empirical variance for AIP
CV_Range

Change variance of distribution while keeping the mean constant
AIPcalc

Calculation of Atherogenic Index of Plasma (AIP)
AIP_TGVrnc

Calculate the variance of AIP when TG changes.
AIPErrPrp

Variance of Atherogenic Index of Plasma (AIP) using Error Propagation.
AIPErrPrp2Ord

Second Order Taylor expansion AIP Error propagation variance
AIPbootVrnc

Calculate variance of AIP using Bootstrapping.
AIP_HDLVrnc

Calculate the variance of AIP when HDL changes.
JSD

Calculate the Jensen-Shannon divergence (JSD)
LDLErrPrp

Calculate LDL variance using error propagation
ErrorCorCov

Calculate correlation and covariance of residuals
LDL_DensityPlotOfbootst

Plot density of bootstrap and empirical variance for LDL
LDL_ML_Main

Create, train, assess and return an ML prediction model.
LDL_ML_Main_All_Models

Create, train, assess and return all ML prediction models
JSDNormal

Calculate the Jensen-Shannon divergence (JSD) between a discrete empirical distribution and the normal distribution.
LDL_CHOLVrnc

Calculate LDL variance when cholesterol variance changes
LDL_HDLVrnc

Calculate LDL variance when HDL variance changes