Description Usage Arguments Value Examples
gather_data
is written to work with functions from
the revealedPrefs package.
checkWarp
and similar "check" functions
take as input two n
by i
matrices, one for goods and one for prices.
gather_data
takes a list with two matrices and returns a dataframe.
1 | gather_data(matrix_list)
|
matrix_list |
a list containg two matrices:
|
a dataframe where the rows represent an individual's choice and the columns represent the quantities and prices of a good
1 2 | simGarp(2,4) %>%
gather_data()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.