rsa.reason: Run multiple iterations (recursions) of RSA

Description Usage Arguments Value Examples

Description

Return matrix after undergoing number 'depth' recursions

Usage

1
2
rsa.reason(m, costs = rep(0, ncol(m)), priors = rep(1, nrow(m)),
  depth = 1, alpha = 1, usePriorEveryRecurse = FALSE)

Arguments

m,

matrix of semantics with 'items' cols and 'quantity' rows

costs,

ncol(m) vector of costs (default is 0 valued vector)

priors,

nrow(m) vector of priors (default is uniform)

depth,

number of recursions

alpha,

decision hyper-parameter

usePriorEveryRecurse,

boolean incorporate priors during each full recursion, default is FALSE

Value

matrix of posterior values

Examples

1
2
3
4
5
m <- matrix(data = c(0, 0.2, 0.25, 0.25, 0.3, 0, 0, 0, 0.3, 0.7), nrow = 5)
rownames(m) <- 1:5
colnames(m) <- c("item1", "item2")
rsa.reason(m, depth = 0)
rsa.reason(m, depth = 2)

benpeloquin7/rrrsa documentation built on May 12, 2019, 2:08 p.m.