checkWarpExtra: Check Warp Extra

Description Usage Arguments Examples

Description

checkWarpExtra is a wrapper function for the checkWarp function from the revealedPrefs package.

Usage

1
2
3
4
5

Arguments

df

a dataframe containing columns with quantities and prices of goods

...

the columns within df that contain quantities and prices. The first half of the columns provided are assumed to be quantities and the second half of the columns provided are be assumed to be prices.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#checkWarpExtra
experiment_data<- tibble(subject = c(1, 1, 2, 2),
                              x1 = c(1:4),
                              x2 = c(5:8),
                              p1 = c(5:8),
                              p2 = c(5:8))
 
experiment_data %>%
 checkWarpExtra(x1, x2, p1, p2)
# checkSarpExtra
experiment_data<- tibble(subject = c(1, 1, 2, 2),
                              x1 = c(1:4),
                              x2 = c(5:8),
                              p1 = c(5:8),
                              p2 = c(5:8))
 
experiment_data %>%
 checkSarpExtra(x1, x2, p1, p2)
# checkSarpExtra
experiment_data<- tibble(subject = c(1, 1, 2, 2),
                              x1 = c(1:4),
                              x2 = c(5:8),
                              p1 = c(5:8),
                              p2 = c(5:8))
 
experiment_data %>%
 checkSarpExtra(x1, x2, p1, p2)

naecker-lab/revealedPrefsExtra documentation built on June 14, 2019, 7:07 p.m.