Description Usage Arguments Value Author(s) References Examples
Corrects the calcium level reported in the basic or comprehensive metabolic panel according to the albumin level reported on the same test.
1 2 3 4 5 | corrected.calcium.calc(
measured.calcium = 8,
albumin = 2.4,
unit = "SI"
)
|
measured.calcium |
Accepts a numerical value. The calcium level reported in the BMP or CMP that you want to correct. |
albumin |
Accepts a numerical value. The albumin level reported in the BMP or CMP that contains the calcium value you want to correct. |
unit |
Accepts a string value. Can be either 'SI' if your lab values are reported in the International System or 'Eng' if your lab values are reported in the English system. Both albumin and calcium need to come from the same sample and lab test. Both have to be in the same unit system. Default is 'SI'. |
Returns a numerical value corresponding to the corrected calcium levels. The output will be on the same unit system as the input.
Carlos C Vera Recio
Payne, R B et al. “Interpretation of serum calcium in patients with abnormal serum proteins.” British medical journal vol. 4,5893 (1973): 643-6. doi:10.1136/bmj.4.5893.643
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | corrected.calcium.calc(
measured.calcium = 8,
albumin = 2.4,
unit = "SI"
)
## The function is currently defined as
function (measured.calcium = 8, albumin = 2.4, unit = "SI")
{
if (unit == "SI") {
corrected.calcium = measured.calcium + 0.02 * (40 - albumin)
}
else if (unit == "Eng") {
corrected.calcium = measured.calcium + 0.02 * (40 - albumin)
}
cat("Corrected calcium= ", corrected.calcium, " in units ",
unit)
cat("", sep = "\n")
return(corrected.calcium)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.