FilipePintoReis / KARS_project

Apache License 2.0
0 stars 0 forks source link

other()s #10

Closed balima78 closed 2 years ago

balima78 commented 2 years ago

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") )

balima78 commented 2 years ago

functions on histof.R

we can close this issue!