Learn R Programming

multinomineq (version 0.2.6)

strategy_postprob: Strategy Classification: Posterior Model Probabilities

Description

Posterior model probabilities for multiple strategies (with equal prior model probabilities).

Usage

strategy_postprob(k, n, strategies, cpu = 1)

Arguments

k

observed frequencies of Option B. Either a vector or a matrix/data frame (one person per row).

n

vector with the number of choices per item type.

strategies

list of strategies. See strategy_multiattribute

cpu

number of processing units for parallel computation.

See Also

strategy_marginal and model_weights

Examples

Run this code
# pattern 1: A, A, B with constant error e<.50
strat1 <- list(
  pattern = c(-1, -1, 1),
  c = .5, ordered = FALSE,
  prior = c(1, 1)
)
# pattern 2: A, B, B with ordered error e1

Run the code above in your browser using DataLab