View source: R/compare.juror.stats.R
compare.juror.stats | R Documentation |
Calculates juror-level statistics and differences based on sample statistics (from a survey) supplied by user.
compare.juror.stats(pg_actual, n_actual, pg_hypo, n_hypo, digits = 3)
pg_actual |
The proportion of jurors who favor a guilty verdict in the actual trial condition (the trial with error). |
n_actual |
The size of the sample used to estimate pg_actual. |
pg_hypo |
The proportion of jurors who favor a guilty verdict in the hypothetical trial condition (the fair trial without error). |
n_hypo |
The size of the sample used to estimate pg_hypo. |
digits |
Number of digits to report after decimal places; default value is 3. |
Returns a list of juror-level statistics to assess the effect of a trial error or omission on juror preferences. Returned list includes statistics for the actual trial, the hypothetical trial, and the difference between them.
library(sate)
compare.juror.stats(pg_actual=.70, n_actual=400, pg_hypo=.60, n_hypo=450)
compare.juror.stats(pg_actual=.75, n_actual=450, pg_hypo=.65, n_hypo=350)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.