compare.jury.stats: Estimates jury-level differences based on juror-level...

Description Usage Arguments Value Examples

View source: R/compare.jury.stats.r

Description

Calculates jury-level differences based on juror-level statistics supplied by user.

Usage

1
2
3
4
5
6
7
8
compare.jury.stats(
  pg_actual,
  n_actual,
  pg_hypo,
  n_hypo,
  seed = NULL,
  ndraw = 1e+06
)

Arguments

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.

seed

Set seed for random number generation for replication, default is NULL (optional).

ndraw

The number of simulations used to generate results. Should be very large number (default = 1000000).

Value

Returns a list of jury-level statistics to assess effect of a trial error.

Examples

1
2
3
4
   compare.jury.stats(pg_actual=.70, n_actual=400, pg_hypo=.60, n_hypo=450)

   compare.jury.stats(pg_actual=.75, n_actual=450, pg_hypo=.65, n_hypo=350,
                      seed=12345, ndraw=100000)

sate documentation built on March 24, 2020, 5:08 p.m.