calc_pr_guess: Calculate the probability that the observer will try to guess...

View source: R/calc_payouts.R

calc_pr_guessR Documentation

Calculate the probability that the observer will try to guess the rule

Description

The function calculates the probability that an observer will try to guess which rule governs the decision maker's actions. The function is meant for internal use only. It can be printed alongside the payouts calculated using print_payout if print_all = TRUE.

Usage

calc_pr_guess(expected_payout_obs, payout_obs_no_guess, deterministic)

Arguments

expected_payout_obs

Vector of expected payout to the observer from guessing

payout_obs_no_guess

The payout to the observer from not guessing

deterministic

A boolean equal to TRUE if we treat the decision to guess as deterministic. Defaults to TRUE.

Value

A vector with the probabilities that an observer will guess


obfuscatoR documentation built on Sept. 8, 2023, 5:48 p.m.