Description Usage Arguments Examples
checkWarpExtra
is a wrapper function for the
checkWarp
function from the revealedPrefs package.
1 2 3 4 5 |
df |
a dataframe containing columns with quantities and prices of goods |
... |
the columns within |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.