GTFT: GTFT function file.

View source: R/GTFT.R

GTFTR Documentation

GTFT function file.

Description

GTFT function file.

Usage

GTFT(
  i,
  coop,
  intent,
  coop_error,
  arb,
  arb_error,
  error_rate,
  arb_error_rate_type_1,
  arb_error_rate_type_2,
  standing,
  xi = 0,
  generosity_p = 0.2
)

Arguments

i

The round ID code.

coop

Was cooperation observed?

intent

The the player intend to cooperate?

coop_error

Was an error introduced by the computer?

arb

Was the arbitrator called?

arb_error

Did the arbitrator declare an error?

error_rate

The rate at which the computer introduces errors of the form C to D.

arb_error_rate_type_1

The arbitrators rate of failing to detect a real error.

arb_error_rate_type_2

The arbitrators rate of claiming an error was a true defection.

standing

A vector of standing.

xi

The sneaky rate of the strategy.

Value

A vector of information.

  • Cell 1 - Did the player cooperate?

  • Cell 2 - Did the player intend tocooperate?

  • Cell 3 - Did the computer introduce an error?

  • Cell 4 - Did the player call the arbitrator?

  • Cell 5 - Did the arbitrator declare an error occured?

  • Cell 6-7 - Returned standing.

  • Cell 8-9 - Mid-round standing.


ctross/PrisonR documentation built on July 1, 2024, 11:23 p.m.