ElicitPsi
provides a Tcl/Tk graphical user
interface that allows users to vary the parameters of the beta prior
distributions over the $psi$ parameters (the potential
outcome distributions within cells of the $(X,Y)$ table) used by
analyze2x2
. See Quinn (2008). ElicitPsi(C00, C01, C10, C11, maxvalue = 100, a00 = 0.25, a01 = 0.25, a10 = 0.25, a11 = 0.25, nsamp = 50000, output.object = "output.SimpleTable")
a01
, a10
, and
a11
governing the Dirichlet prior for $theta$
(the joint probabilities of $X$ and $Y$). This prior has the
effect of adding a00
- 1 observations to the $(X=0, Y=0)$
cell of the table. a00
, a10
, and
a11
governing the Dirichlet prior for $theta$
(the joint probabilities of $X$ and $Y$). This prior has the
effect of adding a01
- 1 observations to the $(X=0, Y=1)$
cell of the table. a00
, a01
, and
a11
governing the Dirichlet prior for $theta$
(the joint probabilities of $X$ and $Y$). This prior has the
effect of adding a10
- 1 observations to the $(X=1, Y=0)$
cell of the table. a00
, a01
, and
a10
governing the Dirichlet prior for $theta$
(the joint probabilities of $X$ and $Y$). This prior has the
effect of adding a11
- 1 observations to the $(X=1, Y=1)$
cell of the table. output.SimpleTable
. ElicitPsi
does not formally have a return value, it does put a number of objects in the global environment. These objects are:c00
) governing the
beta prior for the distribution of potential outcome types within
the $(X=0, Y=0)$ cell of the table. This prior adds the same
information as would be gained from observing b00
- 1 Helped
units in the $(X=0, Y=0)$ cell of the table.c01
) governing the
beta prior for the distribution of potential outcome types within
the $(X=0, Y=1)$ cell of the table. This prior adds the same
information as would be gained from observing b01
- 1 Always Succeed
units in the $(X=0, Y=1)$ cell of the table.c10
) governing the
beta prior for the distribution of potential outcome types within
the $(X=1, Y=0)$ cell of the table. This prior adds the same
information as would be gained from observing b10
- 1 Hurt
units in the $(X=1, Y=0)$ cell of the table. c11
) governing the
beta prior for the distribution of potential outcome types within
the $(X=1, Y=1)$ cell of the table. This prior adds the same
information as would be gained from observing b11
- 1 Always Succeed
units in the $(X=1, Y=1)$ cell of the table. b00
) governing the
beta prior for the distribution of potential outcome types within
the $(X=0, Y=0)$ cell of the table. This prior adds the same
information as would be gained from observing b00
- 1 Never Succeed
units in the $(X=0, Y=0)$ cell of the table. b01
) governing the
beta prior for the distribution of potential outcome types within
the $(X=0, Y=1)$ cell of the table. This prior adds the same
information as would be gained from observing c01
- 1 Hurt
units in the $(X=0, Y=1)$ cell of the table. b10
) governing the
beta prior for the distribution of potential outcome types within
the $(X=1, Y=0)$ cell of the table. This prior adds the same
information as would be gained from observing c10
- 1 Never Succeed
units in the $(X=1, Y=0)$ cell of the table.b11
) governing the
beta prior for the distribution of potential outcome types within
the $(X=1, Y=1)$ cell of the table. This prior adds the same
information as would be gained from observing b11
- 1 Helped
units in the $(X=1, Y=1)$ cell of the table.Calculate Effects
button,
analyze2x2
is called with the current values of prior
parameters. The output from analyze2x2
is written to an object
in the global environment with the name given by the
output.object
argument (see argument list above).analyze2x2
and Quinn (2008) for details regarding the model and prior specification used.
ConfoundingPlot
, analyze2x2xK
, analyze2x2xK
, summary.SimpleTable
, plot.SimpleTable
## Not run:
# ## Example from Quinn (2008)
# ## (original data from Oliver and Wolfinger. 1999.
# ## ``Jury Aversion and Voter Registration.''
# ## American Political Science Review. 93: 147-152.)
# ##
# ## Y=0 Y=1
# ## X=0 19 143
# ## X=1 114 473
# ##
#
# ElicitPsi(C00=19, C01=143, C10=114, C11=473, output.object="output.2x2")
#
# ## End(Not run)
Run the code above in your browser using DataLab