Displaying 1 result from an estimated 1 matches for "is_black".
Did you mean:
bg_black
2018 May 23
0
MICE passive imputation formula
...5)
But what If the formula for a variable is much more complicated, like with CKD-epi. The formula is:
egfr_crea_ckdepi = function(creatinine, age, is_female, is_male) {
if (length(creatinine) != length(age) ||
length(creatinine) != length(is_female) ||
length(creatinine) != length(is_black)) {
stop("input vector lengths must match!")
}
a = ifelse(!is_black, ifelse(!is_female, 141, 144), ifelse(!is_female(163, 166)))
b = ifelse(!is_female, 0.9, 0.7)
c = ifelse(!is_female, ifelse(creatinine <= 0.9, -0.411, -1.209), ifelse(creatinine <= 0.7, -0.329, -1.209)...