Re: [R] CKD-Epi formula

2018-05-23 Thread Rui Barradas
Hello, The literal translation of the formula I have found online [1] to R code is eGFR <- function(SCr, Age, Sex, Race){ k <- ifelse(Sex == "M", 0.9, 0.7) alpha <- ifelse(Sex == "M", -0.411, -0.329) S <- ifelse(Sex == "M", 1, 1.018) R <- ifelse(Race = "black", 1.159, 1) 14

[R] CKD-Epi formula

2018-05-23 Thread A.C. van der Burgh
Hi all, I have a question and I do not know If I am at the right place to ask this question. But is there someone that has the formula of CKD-Epi in code in R? I have tried a lot of loops, but none of the approaches give me the right answer. Is there someone who has this formula coded? Thank yo