gather_data is written to work with functions from
the revealedPrefs package.
checkWarp and similar "check" functions
take as input two
i matrices, one for goods and one for prices.
gather_data takes a list with two matrices and returns a dataframe.
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
simGarp(2,4) %>% gather_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.