calc_pr_rk_aj: Calculate Pr(r_k|a_j)

View source: R/calc_entropy.R

calc_pr_rk_ajR Documentation

Calculate Pr(r_k|a_j)

Description

The function calculates the probability of a rule conditional on observing a given action and is part of calculating the entropy of an action. This probability is also referred to as the posterior probability. The function is meant for internal use only.

Usage

calc_pr_rk_aj(pr_aj_rk, priors)

Arguments

pr_aj_rk

A matrix with the probabilities of actions conditional on a given rule.

priors

A vector of prior values. If the design is a list of matrices, priors can be a matrix with rows equal to the length of the design and columns equal to the number of rules.

Value

An r x a matrix of probabilities


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