View source: R/as.jury.point.r
as.jury.point | R Documentation |
Calculates the probability that jury of size jury_n finds defendant guilty given on preferences of jury pool (inputted as sample_pg). Does not estimate uncertainty (use as.jury.stats function for inferential statistics).
as.jury.point(
sample_pg,
jury_n = 12,
pstrikes = 0,
dstrikes = 0,
accuracy = 0.15
)
sample_pg |
Proportion of jurors who favor a guilty verdict. Can be a single number between 0 and 1, or a vector of such numbers. |
jury_n |
Size of the jury (i.e. 6, 8, or 12); default value is 12. |
pstrikes |
Number of peremptory strikes by prosecution; default value is 0. |
dstrikes |
Number of peremptory strikes by defendant; default value is 0. |
accuracy |
Accuracy of parties' peremptory strikes; a number between 0 and 1; default value is .15. |
Returns the probability jury finds defendant guilty (if sample_pg is a single number) or vector of such probabilities (if sample_pg is a vector).
library(sate)
as.jury.point(sample_pg = .50)
as.jury.point(sample_pg = 10/12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.