Choose from the following items for name. The possibilities
include items stored as is in dbuf (and so could also be
retrieved with the Gauss command vread), calculated from
dbuf, special optional items that can be added ahead of time,
and additional items that can be computed but require the added items.
From the perspective of the user, items in each of these categories
can be treated identically, as all calculations are automatic. Items
are not case sensitive. (Items that use true values from
individual-level data will only work if you have vput this
information into _Eres prior to running ei under
the name truth. These are useful for verifying the method if
individual-level data are available, but they are not useful for most
ecological inference applications, where this information is not
available. The options are included here only because I needed them
while writing the book.)
When used with an EI2 output data buffer (i.e., for
tables), eiread uses use the mean posterior estimate for
for some items; the correct multiply imputed values of
(x2) are used only where specifically noted.
- _EalphaB
- value of this global (priors on
)
- _EalphaW
- value of this global (priors on
)
- _Ebeta
- value of this global (priors on
)
- _Ebounds
- value of this global (bounds for CML, not quantities
of interest).
- _Ecdfbvn
- value of this global (method of calculating CDF of
the bivariate normal)
- _EdirTol
- value of this global (CML convergence tolerance)
- _EdoML
- value of this global (do maxlik)
- _EdoML_phi
- value of this global (input
's). Only
relevant if _EdoML=0.
- _EdoML_vcphi
- value of this global (input variance-covariance
of
's). Only relevant if _EdoML=0.
- _Eeta
- value of this global (expanded model specifications; see
Chapter 9).
- _EI_bma_prior
- value of this global (prior model
probabilities for Bayesian Model Averaging).
- _EI_vc
- value of this global (variance matrix computation)
- _EImodels_save
- value of this global (file name for
eimodels_run).
- _EIgraph_bvsmth
- value of this global (smoothing parameter for
nonparametric density estimation)
- _EisChk
- value of this global (check importance sampling)
- _EisFac
- value of this global (number to multiply by variance
matrix by in importance sampling or
for normal approximation)
- _EisN
- value of this global (first stage importance sampling
factor)
- _EisT
- value of this global (multivariate
or normal for
importance sampling)
- _EmaxIter
- value of this global (maximum iterations for CML)
- _EnonEval
- value of this global (number of nonparametric
density evaluations for each tomography line). Only relevant if
_Enonpar=1.
- _EnonNumInt
- value of this global (number of points to evaluate
for numerical integration in computing the denominator for the
bivariate kernel density). Only relevant if _Enonpar=1.
- _EnonPar
- value of this global (0, parametric or 1,
nonparametric, estimation).
- _EnumTol
- value of this global (numerical tolerance for
homogeneous and unanimous precincts)
- _Erho
- value of this global (prior on
). See Section
7.4.
- _Eselect
- value of this global (vector of 0/1 to delete/select
observations during likelihood stage, or 1 to select all).
- _EselRnd
- value of this global (fraction of observations to
select randomly).
- _Esigma
- value of this global (priors on
and
). See Section 7.4.
- _Esims
- value of this global (number of simulations). See
Appendix F.
- _Estval
- value of this global when ei was run
(starting values).
- _n
: the original variable
from the first
stage EI analysis. This works only for EI2.
- _t
: the original variable
from the first
stage EI analysis. This works only for EI2.
- _EvTol
- value of this global (numerical tolerance for the
conditional variance).
- _x
: the original variable
from the first
stage EI analysis. This works only for EI2.
- _Ez
: number of covariates (see Chapter 9),
including implied constant term for Zb
Zw; also clears and
sets this in global memory.
- ABounds
: aggregate bounds rows:lower,upper;
columns:betab,betaw. See Chapter 5.
- ABounds2
: aggregate bounds for the
's from
EI2, rows:lower,upper; columns:lambdaB,lambdaW. See Chapter 5.
- AggBias
: regressions of true
and
on a constant and
. Requires truth to
have been vput into _Eres prior to running ei.
See Table 11.1, page 219.
- aggs
- _Esims
: simulations of district-level
quantities of interest,
. See Section 8.3.
(Uses x2 simulations when used with ei2).
- AggTruth
: true district-level
and
.
Requires truth to have been vput into _Eres prior
to running ei. See Chapter 2.
- beta
point estimates of
(in the first
column) and
(in the second) based on their mean
posterior. See Section 8.2. (Uses x2 simulations when
used with ei2.)
- betaB
point estimates of
based on its
mean posterior. See Section 8.2. (Uses x2
simulations when used with ei2.)
- betaBs
_Esims: simulations of
.
See Chapter 8. (Uses x2 simulations when used
with ei2).
- betaW
point estimate of
based on its
mean posterior. See Section 8.2. (Uses x2
simulations when used with ei2).
- betaWs
_Esims: simulations of
. See
Section 8.2. (Uses x2 simulations when used
with ei2).
- bounds
: bounds on
and
,
lowerB
upperB
lowerW
upperW. See Chapter
5.
- bounds2
: bounds on
and
,
lowerB
upperB
lowerW
upperW. See Chapter
5, eqns 5.4.
- checkR
- rows(
)
matrix with rows corresponding to
, columns corresponding to slightly less
more (by amount
_EdirTol) than the MLEs, and each element indicating that
the CDFBVN function is sufficiently precise (when 1) and
insufficiently precise (when 0). This function calculates the
portion of the likelihood function to make the comparison (Equation
6.15, p.104). See option R.
- CI50b
: lower
upper 50% confidence intervals
for
. See Section 8.2. (Uses x2
simulations when used with ei2).
- CI50w
: lower
upper 50% confidence intervals
for
. See Section 8.2. (Uses x2
simulations when used with ei2).
- CI80b
: lower
upper 80% confidence intervals
for
. See Section 8.2. (Uses x2
simulations when used with ei2).
- CI80bw
: lowerB
upperB
lowerW
upperW
80% confidence intervals for
and
. See
Section 8.2. (Uses x2 simulations when used
with ei2).
- CI80w
: lower
upper 80% confidence intervals
for
. See Section 8.2. (Uses x2
simulations when used with ei2).
- CI95b
: lower
upper 95% confidence intervals
for
. See Section 8.2. (Uses x2
simulations when used with ei2).
- CI95bw
: lowerB
upperB
lowerW
upperW
95% confidence intervals for
and
. See
Section 8.2. (Uses x2 simulations when used
with ei2).
- CI95w
: lower
upper 95% confidence intervals
for
. See Section 8.2. (Uses x2
simulations when used with ei2).
- coverage
: confidence interval coverage; percent of
true values within the 50% and 80% confidence intervals:
50b
80b
50w
80w (1st row = means, 2nd = weighted
means). Requires truth to have been vput into
_Eres prior to running ei. (Uses x2
simulations when used with ei2).
- CsbetaB
confidence interval-based standard error of
. (Uses x2 simulations when used with
ei2).
- CsbetaW
confidence interval-based standard error of
. (Uses x2 simulations when used with
ei2).
- DataSet
- Zb
Zw
x
t, used for input to
eiloglik. If _Eselect is a scalar less than 1
(for random selection of cases). The global _EselRnd is
ignored.
- date
- a string containing the date and time at which execution
completed, as well as the version number and date of the program
that created the input data buffer.
- double
coefficients from a double regression.
Requires an EI2 data buffer as input. See Section 4.3.
- EaggBias
: regressions of estimated
and
on a constant term and
. First row: coefficients,
second row: standard errors. See Section 9.2.4.
- etaC
coefficients implied by global _Eeta
- etaS
standard errors implied by global _Eeta
- ExpVarCI
-
: 80% confidence intervals for
given
. X
20%CI
mean
80%CI of sims from
, where
in this context is 100 numbers equally spaced
between 0 and 1. See Section 8.5. (Uses x2 simulations
when used with ei2).
- ExpVarCI0
: 80% confidence intervals for
given the observed values of
and/or Zb and
Zw when applicable. T
20%CI
mean
80%CI of
sims from
(Uses x2 simulations
when used with ei2).
- ExpVarCIs
-
: same as expvarci, but smoothed with
LOESS. Used for eigraph's xtfit. See Section 8.5. (Uses
x2 simulations when used with ei2).
- GEbw
:
Nsims. Point
estimates of
and
, based on the mean
posterior under the prior that
. Use this
option (instead of beta) if you are reasonably certain that
. This procedure is based on simulations for
which the inequality holds, and thus also reports Nsims,
the number of simulations on which each estimate is based (If
Nsims is not close to _Esims, you may wish to
question your assumption or increase _Esims).
- GEbwa
:
. Aggregate level mean
posterior estimates, based on simulations where
. See GEbw for more information.
- GEwb
:
Nsims. Point
estimates of
and
, based on the mean
posterior under the prior that
. Use this
option (instead of beta) if you are reasonably certain that
. This procedure is based on simulations for
which the inequality holds, and thus also reports Nsims,
the number of simulations on which each estimate is based (If
Nsims is not close to _Esims, you may wish to
question your assumption or increase _Esims).
- GEwba
:
. Aggregate level mean
posterior estimates, based on simulations where
. See GEwb for more information.
- GhActual
- value of the output global _GhActual, the
row of _ei_vc for which a positive definite variance
matrix was found.
- Goodman
: row 1: Goodman's Regression coefficients,
row 2: standard errors. See Section 3.1.
- lnIR
- If _EisChk=1, this is a
_Esims*_Eisn
rows(
)+1 matrix ,
containing the log of the importance ratio as the first column and
normal simulations of
as the remaining columns. If
_EisChk=0, this is the scalar mean importance ratio
(equivalent to meanIR below).
- LogLik
- value of log-likelihood at the maximum (unnormalized)
- LogLikS
- value of log-likelihood at the maximum (unnormalized)
for each observation
.
- LLikSims
- If _EiLlikS=1, this is _Esims
vector of log-likelihood values for each simulation; otherwise it
is a scalar mean of these.
- Maggs
: point estimate of 2 district-level
parameters,
and
: meanc(aggs). See Section
8.3. (Uses x2 simulations when used with ei2).
- MeanIR
- scalar log of the mean importance ratio
- mpPsiu
- Mean Posterior of
(rather than MLEs).
- N
: number of individual elements in precinct
,
, an input to ei.
- Nb
: denominator of x and t,
equal to x.*n,
(e.g., number of blacks in the
voting age population).
- Nb2
- for ei2 data buffers only,
_Esims: denominator of x2 and
V, equal to x2.*n,
(e.g., number of blacks
in the voting age population).
- Nt
: numerator of t, equal to
t.*n,
(e.g., number of people who turnout).
- NbN
:
(e.g., number of blacks who don't vote).
Requires truth to have been vput into _Eres prior
to running ei. See Chapter 2.
- NbT
:
(e.g., number of blacks who vote).
Requires truth to have been vput into _Eres prior
to running ei. See Chapter 2.
- Neighbor
- Freedman et al.'s neighborhood model point estimates
(i.e., assuming
, with implied standard errors
of zero).
- nobs
- scalar: number of observations,
.
- Nw
: equal to (1-x).*n,
(e.g.,
number of whites in the voting age population)
- Nw2
- for ei2 data buffers only,
_Esims: equal to (1-x2).*n,
(e.g., number of whites in the voting age population)
- NwN
: (e.g., number of whites who don't vote).
Requires truth to have been vput into _Eres prior
to running ei. See Chapter 2.
- NwT
:
(e.g., number of whites who Turnout).
Requires truth to have been vput into _Eres prior
to running ei. See Chapter 2.
- Paggs
: row 1:
and
; row 2:
standard errors. See Section 8.3. (Uses x2
simulations when used with ei2).
- Palmquist
- scalar: Palmquist's Inflation Factor. See Equation
3.14, page 52.
- ParNames
- character vector of names for
(_cml_parnames).
- phi
- maximum posterior estimates from CML.
- PhiSims
- If _EisChk==1, PhiSims is a
_Esims
rows(
) matrix of random simulations of
; otherwise, it is a rows(
)
matrix of the
means (in the first column) and standard deviations (in the second
column) of the simulations (which are the mean and standard
deviations of the posterior distribution of
). See Section
8.2.
- Pphi
maximum posterior estimates. row 1:
,
row 2: standard errors. See Chapter 7.
- psi
- reparameterized
into ultimate truncated scale. See
Section 6.2.2.
- PsiTruth
: true values of
(i.e., on truncated
scale). Requires truth to have been vput into
_Eres prior to running ei. See Table 10.3, page
207.
- psiu
-
, which was reparameterized from
into
untruncated scale. See Equation 7.4, page 136.
- R
- The sum of the log of the volume above the unit square under
the bivariate normal,
. This is the last piece
of the likelihood function. See checkR.
- Ri
- The log of the volume above the unit square under the
bivariate normal,
for each
. This is the
last piece of the likelihood function, and will differ over
only
if covariates are included. See checkR.
- resamp
- number of resampling tries. This number will range
between 1 and _Esims and is better if small. If it is
greater than 15-20, you can try adjusting _Eisn or
_EisFac and rerunning ei.
- RetCode
- CML return code. zero means everything is ok.
- RNbetaBs
_Esims: randomly horizontally
permuted simulations of
. This is essentially equivalent
to betaBs except that it randomly permutes estimation
variation also. (Uses x2 simulations when used with
ei2).
- RNbetaWs
_Esims: randomly horizontally
permuted simulations of
. This is essentially equivalent
to betaWs except that it randomly permutes estimation
variation also. (Uses x2 simulations when used with
ei2).
- sbetaB
standard error for the estimate of
, based on the standard deviation of its posterior. See
Section 8.2. (Uses x2 simulations when used
with ei2).
- sbetaW
standard error for the estimate of
, based on the standard deviation of its posterior. See
Section 8.2. (Uses x2 simulations when used
with ei2).
- STbetaBs
_Esims: SORTED simulations of
(e.g., the 80% confidence interval lower bound is
STbetaBs[int(0.1*_Esims)]). See Section 8.2.
(Uses x2 simulations when used with ei2).
- STbetaWs
_Esims: SORTED simulations of
(e.g., the 80% confidence interval upper bound is
STbetaWs[int(0.9*_Esims)]). See Section 8.2.
(Uses x2 simulations when used with ei2).
- sum
- prints a summary of district-level information
- t
: outcome variable proportion,
(e.g.,
turnout); input to ei. If dbuf is the output from ei2,
then this option gives
(e.g., Democratic fraction of the major
party vote), an input to ei2.
- Thomsen
: Estimates of
from Thomsen's
Ecological Logit Model.
- titl
- string: a title with descriptive information. Must have
been vput into _Eres prior to running ei.
- truPtile
- p x 2: percentile of sorted simulates at which the
true value falls for
and
. Requires
truth to have been vput into _Eres prior to
running ei. See Figure 10.7, page 213. (Uses x2
simulations when used with ei2).
- truth
: true values of the precinct-level quantities
of interest
. Must have been vput into
_Eres prior to running ei.
- truthB
- truth[.,1], the true
. Requires
truth to have been vput into _Eres prior to
running ei.
- truthW
- truth[.,2], the true
. Requires
truth to have been vput into _Eres prior to
running ei.
- tsims
_Esims
: simulations of
given
. rows correspond to 100 values of
equally spaced
between zero and one, columns are
and sorted simulations of
. See Section 8.5. (Uses x2 simulations when
used with ei2).
- tsims0
_Esims
: simulations of
given observed values of
and/or Zb and Zw.
The first column is the actual values of
(Uses x2
simulations when used with ei2).
- VCaggs
: variance matrix of 2 district-level
parameters,
and
. See Section 8.3. (Uses
x2 simulations when used with ei2).
- VCphi
- global variance matrix of coefficients phi from gvc(). If
is set to {-1 0 }, then it returns the inverse of
the variance matrix.
- x
: explanatory variable proportion,
(e.g.,
black voting age population); input to ei. (for
ei2, this is the mean posterior estimate of
, as,
e.g., the black fraction of those voting).
- x2
- for ei2 data buffers only,
: simulations of the explanatory variable
proportion,
(e.g., black fraction of voters).
- x2rn
- for ei2 data buffers only,
: horizontally randomly permuted
simulations of the explanatory variable proportion,
(e.g.,
black fraction of voters). (This is useful because x2 has
only _EI2_m unique columns.)
- Zb
- matrix of covariates for
or 1 for none; as
affected by _Eeta; input to ei. See Section 9.2.1.
- Zw
- matrix of covariates for
or 1 for none; as
affected by _Eeta; input to ei. See Section
9.2.1.
Gary King
2006-09-13