Learn R Programming

LDLcalc (version 2.1)

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

Description

This function calculates and returns the LDL value computed from any of the 12 named equations.

Usage

LDL_eq(TC, HDL, TG, EqMethod)

Value

The calculated LDL value, according to the equation of choice or a printed error message and 404, if the equation type does not exist.

Arguments

TC

The TC (Total Cholesterol) value.

HDL

The HDL (High-density lipoprotein- cholesterol) value.

TG

The TG (Triglyceride) value.

EqMethod

The type of equation to be used to calculate the LDL value.The type of equation to be used to calculate the LDL value. EqMethod could be:("Friedewald","Ahmadi","Chen","Anandaraja","NewFormula","deCordova","Vujovic","Hattori","Puavillai","Hatta","Martin180","Martin360","Martin2000","DeLong" or "Rao").

Examples

Run this code
LDL_eq(170.5,35.12,230,"Martin360")

Run the code above in your browser using DataLab