Description Usage Arguments Details Value Author(s) References See Also Examples
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).
1 2 3 | 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")
|
C00 |
The number of observations in (X=0, Y=0) cell of the table. In other words, the number of observations that received control and failed. |
C01 |
The number of observations in (X=0, Y=1) cell of the table. In other words, the number of observations that received control and succeeded. |
C10 |
The number of observations in (X=1, Y=0) cell of the table. In other words, the number of observations that received treatment and failed. |
C11 |
The number of observations in (X=1, Y=1) cell of the table. In other words, the number of observations that received treatment and succeeded. |
maxvalue |
The largest possible value for the parameters of the beta priors that are being elicited. This value is used to set the slider bars appropriately. |
a00 |
One of four parameters (with |
a01 |
One of four parameters (with |
a10 |
One of four parameters (with |
a11 |
One of four parameters (with |
nsamp |
Size of the Monte Carlo sample used to summarize the posterior. |
output.object |
String giving the name of the output object
the result are sent to. Default is |
See analyze2x2
and Quinn (2008) for details regarding the model and prior specification used.
While ElicitPsi
does not formally have a return value, it does put a number of objects in the global environment. These objects are:
b00 |
One of two parameters (with |
b01 |
One of two parameters (with |
b10 |
One of two parameters (with |
b11 |
One of two parameters (with |
c00 |
One of two parameters (with |
c01 |
One of two parameters (with |
c10 |
One of two parameters (with |
c11 |
One of two parameters (with |
In addition, if the user presses the 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).
Kevin M. Quinn
Quinn, Kevin M. 2008. “What Can Be Learned from a Simple Table: Bayesian Inference and Sensitivity Analysis for Causal Effects from 2 x 2 and 2 x 2 x K Tables in the Presence of Unmeasured Confounding.” Working Paper.
ConfoundingPlot
, analyze2x2xK
, analyze2x2xK
, summary.SimpleTable
, plot.SimpleTable
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.