Closed balima78 closed 2 years ago
hi(cPRA = 1-100, [numeric] cutoff = 1-100 [numeric] )
output: if cPRA < cutoff then F else T [logical]
sp(dage = 1-99, [integer] cage = 1-99, [integer] cutoff = 1-99 [integer] )
output: 0 if dage and cage >= cutoff; 1 if dage and cage < cutoff; else 2 ordem (0, 1, 2) a atribuir aos candidatos se pertencem ao mesmo grupo etário dos dadores
cp(cpra_high = 0-100, [numeric] cpra_medium = 0-100, [numeric] dialysis_3q = 0-999 [integer] dialysis_2q = 0-999 [integer] ) color = case_when(cPRA >= cpra_high | dialysis >= dialysis_3q ~ "orange", cPRA >= cpra_medium | dialysis >= dialysis_2q ~ "yellow", TRUE ~ "green"), color = fct_relevel(color,"orange","yellow","green") )
functions on histof.R
we can close this issue!
2 parent
HiperImunized patients
hi(cPRA = 1-100, [numeric] cutoff = 1-100 [numeric] )
output: if cPRA < cutoff then F else T [logical]
Senior Program
sp(dage = 1-99, [integer] cage = 1-99, [integer] cutoff = 1-99 [integer] )
output: 0 if dage and cage >= cutoff; 1 if dage and cage < cutoff; else 2 ordem (0, 1, 2) a atribuir aos candidatos se pertencem ao mesmo grupo etário dos dadores
Color priority
cp(cpra_high = 0-100, [numeric] cpra_medium = 0-100, [numeric] dialysis_3q = 0-999 [integer] dialysis_2q = 0-999 [integer] ) color = case_when(cPRA >= cpra_high | dialysis >= dialysis_3q ~ "orange", cPRA >= cpra_medium | dialysis >= dialysis_2q ~ "yellow", TRUE ~ "green"), color = fct_relevel(color,"orange","yellow","green") )