Learn R Programming

obfuscatoR (version 0.2.2)

calc_pr_rk_aj: 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)

Value

An r x a matrix of probabilities

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.