Returns a data frame with transplant candidates' HLA antibodies obtained according to theirs cPRA values and HLA typing.
Usage
Abs_df(candidates = candidates_df(n = 10), origin = "PT", seed.number = 3)
Arguments
- candidates
A dataframe with
ID
, HLA typing (column names:A1
,A2
,B1
,B2
,DR1
,DR2
) and cPRA value (column name:cPRA
), for a group of transplant candidates.- origin
A character value from options: 'API', 'AFA', 'CAU' and 'HIS'
- seed.number
a numeric seed that will be used for random number generation.
Examples
Abs_df(candidates = candidates_df(n=10), origin = 'PT', seed.number = 3)
#> # A tibble: 35 × 2
#> ID abs
#> <chr> <chr>
#> 1 K5 A25
#> 2 K5 DR4
#> 3 K5 A34
#> 4 K5 B53
#> 5 K5 B49
#> 6 K5 DR4
#> 7 K5 B54
#> 8 K5 B57
#> 9 K5 B44
#> 10 K5 A30
#> # ℹ 25 more rows