codematrix: Construct EQ5D code martix

Description Usage Arguments Value Examples

View source: R/codemartix.R

Description

Construct EQ5D code martix

Usage

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)

Arguments

x

object

...

pass arguments to other methods

const

constant values (numeric of length 3)

y, z

additional numeric vectors if x is numeric of length 5

Value

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.

Examples

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

eribul/eqcw documentation built on Feb. 2, 2019, 11:46 p.m.