icer: Computes incremental cost-effectiveness ratio (ICER)

Description Usage Arguments Details Value Author(s) Examples

Description

The function takes one dataset as input and the dataset MUST have 4 columns ID, RESPONSE, COST and TREATMENT which hold respectively unique subject identifiers, treatment outcome, treatment cost and 2 treatment arms names.

Usage

1
icer(data = NULL, treatResponse = "beneficial")

Arguments

data

a dataset with 4 columns holding respectively, ID, treatment outcome, treatment cost and treatment arm.

treatResponse

a character, default is beneficial i.e. the treatment resulted in beneficial response; otherwise harmful, the treatement resulted in harmful outcome

Details

to be written

Value

a list which holds to elements: ICER value and other statistics for the given dataset

Author(s)

Amadou Gaye & Felix Achana

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
{

# load examples datasets
data(dataset1)

# ICER computation 
output <- icer(dataset1)

# display the ICER value
names(output)
output$ICER

# display the other stats 
output$Stats
}

agaye/ceeComp documentation built on May 10, 2019, 7:32 a.m.