Learn R Programming

sate (version 3.1.0)

prob_ord_from_pool: verdict probabilities based on jury pool sentiment for ordered verdict options.

Description

verdict probabilities based on jury pool sentiment for ordered verdict options.

Usage

prob_ord_from_pool(jury_n, verdict_options, verdict_props, digits = NULL)

Value

A vector of length K that are probabilities of the ordered verdicts.

Arguments

jury_n

Integer. Number of jurors.

verdict_options

Character vector of ordered verdict labels (e.g., `c("NG","M2","M1")`). Order matters: left = most lenient.

verdict_props

Numeric vector specifying proportion of jurors who support the respective verdict_options in the population from which jurors are drawn. (e.g., `c(.25,.50,.25)`). Must correspond to verdict_options.

digits

Integer. Optional, number of digits to round in the returned matrix.

See Also

[transition.matrix.ordered]

Examples

Run this code
library(sate)

# Three-verdict ordered model with a 12-person jury:
prob_ord_from_pool(12, c("NG", "M2", "M1"), c(.25,.50,.25), digits=3)

Run the code above in your browser using DataLab