Notifications
Clear all
Topic starter
Has anyone written MEL that will do a MELD or PELD calculation (used for patients with cirrhosis)?
the calculation looks like this:
MELD = 3.8 x log (e) (bilirubin mg/dL) + 11.2 x log (e) (INR) + 9.6 log (e) (creatinine mg/dL)
thanks in advance!
Posted : May 9, 2012 2:19 am
I did this a few years ago. The more passes (b = 30 passes) the more accurate but this was good to 2 significant digits. Which is all MEL is good for:
{fn getln(logit) {
local a=0
local b
local c=0
for b=1,b<30,b=b+2
do
a=(2*((((logit-1)/(logit+1))^b)/b))
c=c+a
endfor
return c
/*estimate natural log using this: log_e(x) = 2[(x-1)/(x+1) + ((x-1)/(x+1))^3/3 + ((x-1)/(x+1))^5/5 + ... ]*/
}
D Nelsen
Posted : May 9, 2012 3:15 am