gather_data: Gather Data

Description Usage Arguments Value Examples

Description

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.

Usage

1
gather_data(matrix_list)

Arguments

matrix_list

a list containg two matrices:

x

a matrix containing quantities

p

a matrix containing prices

Value

a dataframe where the rows represent an individual's choice and the columns represent the quantities and prices of a good

Examples

1
2
simGarp(2,4) %>%
gather_data()

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