deliberate | R Documentation |
The deliberate function returns a jury verdict based on a simulation of deliberation as a modified tug-of-war between two verdict factions. Can be called directly, but is meant to be called many times to generate verdict probabilities based on g_votes and jury_n values.
deliberate(g_votes, jury_n)
g_votes |
Initial number of votes for guilty verdict (same as K value). |
jury_n |
Size of the jury (i.e. 4, 6, 8, 12, or 16). |
Returns "G" (guilty verdict) or "NG" (not guilty verdict).
library(sate)
deliberate(g_votes=10, jury_n=12)
deliberate(g_votes=4, jury_n=6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.