Description Usage Arguments Value Examples
Construct EQ5D code martix
1 2 3 4 5 6 7 8 9 | codematrix(x, ...)
## S3 method for class 'matrix'
codematrix(x, const, ...)
## S3 method for class 'numeric'
codematrix(x, y = NULL, z = NULL, ...)
is.codematrix(x)
|
x |
object |
... |
pass arguments to other methods |
const |
constant values (numeric of length 3) |
y, z |
additional numeric vectors if |
Object of class "codematrix", a 5 * 3
numerical matrix
with rows corresponding to EQ5D-dimensions (+ constant),
columns correcponding to response levels and individual values
corresponding to translation weights.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # British
uk <-
codematrix(
rep(0, 5),
c(.069, .104, .036, .123, .071),
c(.314, .214, .094, .386, .236),
const = c(1, .081, .35)
)
# Swedish
se <-
codematrix(
rep(0, 5),
c(.0666, .0276, .1012, .0345, .0552),
c(.1247, .0276, .1355, .0904, .2077),
const = c(.9694, 0, .0433)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.