vuong_statistic {oottest} | R Documentation |
Implementation of the Vuong test for our setting
vuong_statistic(data, pred_i, pred_j)
data |
Data of the experiment (matrix of ints/data.frame): columns are treatments, rows are actions, values are number of subjects who chose each action on each treatment |
pred_i |
Model prediction for a theory (matrix of doubles/data.frame): rows are prediction of playing action 1,2,3..., columns are treatments |
pred_j |
Model prediction for a theory (matrix of doubles/data.frame): rows are prediction of playing action 1,2,3..., columns are treatments |
The z score of testing theory I against theory J, given the data
vuong_statistic(
data_two_action_games,
predictions_two_action_games[, , 1],
predictions_two_action_games[, , 2]
)