vuong_statistic: Implementation of the Vuong test for our setting

View source: R/vuong_statistic.R

vuong_statisticR Documentation

Implementation of the Vuong test for our setting

Description

Implementation of the Vuong test for our setting

Usage

vuong_statistic(data, pred_i, pred_j)

Arguments

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

Value

The z score of testing theory I against theory J, given the data

Examples

vuong_statistic(
  data_two_action_games,
  predictions_two_action_games[, , 1],
  predictions_two_action_games[, , 2]
)

oottest documentation built on April 27, 2022, 9:06 a.m.