Skip to contents

Creates a matrix with scores for utility and justice criteria on organ transplantation

Usage

uj_matx(max.val = 100, ratio.util = 0.1, ratio.just = 0.1)

Arguments

max.val

A numerical value corresponding o the matrix maximum value.

ratio.util

A numerical value between 0 and 0.5 corresponding to the decreasing rate for the utility criterion (by row)

ratio.just

A numerical value between 0 and 0.5 corresponding to the decreasing rate for the justice criterion (by column)

Value

A 6 by 6 matrix with at line 1 row 1 has the maximum value and at line 6, row 6 has it's minimum.

Examples

uj_matx(max.val = 100, ratio.util = 0.1, ratio.just = 0.1)
#>      [,1] [,2] [,3] [,4] [,5] [,6]
#> [1,]  100   90   80   70   60   50
#> [2,]   90   80   70   60   50   40
#> [3,]   80   70   60   50   40   30
#> [4,]   70   60   50   40   30   20
#> [5,]   60   50   40   30   20   10
#> [6,]   50   40   30   20   10    0