- .data
a list with the following items.
rc
A (N x J) matrix of observed votes. `1' and `-1' are the yea and nay codes, while `0' is
a missing data code.
startlegis
An (N x 1) matrix indicating the first session that each legislator serves. Justices
are assumed to serve in all terms between (and including) `startlegis' to `endlegis'. Terms start at term 0,
and end at term T - 1.
endlegis
An (N x 1) matrix indicating the last session that each legislator serves. Justices
are assumed to serve in all terms between (and including) `startlegis' to `endlegis'. Terms start at term 0,
and end at term T - 1.
bill.session
A (J x 1) matrix of integers indicating the session each bill occurred in. Session count
begins at 0, so the maximum value of bill.session is T - 1.
T
integer, indicating total number of consecutive terms in the data. Count starts from 1, so the
maximum values of startlegis/endlegis/bill.session is T - 1, since they start from term 0.
.starts
a list containing several matrices of starting values for the parameters. The
list should contain the following matrices:
alpha
A (J x 1) matrix of starting values for the item difficulty parameter \(\alpha_j\).
beta
A (J x 1) matrix of starting values for the item discrimination parameter \(\beta_j\).
x
An (N x T) matrix of starting values for the respondent ideal points \(x_{it}\), with rows indicating the
legislator and columns indicating the session. Although not strictly necessary, it is generally good practice here to
set the start values for legislators who are not serving in a particular session to 0, as that is what the point estimate for
them will return.
.priors
list, containing several matrices of starting values for the parameters. The
list should contain the following matrices:
x.mu0
A (N x 1) prior means matrix for respondent ideal points \(c_{i0}\). These are generally
set to be somewhat informative to resolve the standard rotational invariance problem in ideal point models.
x.sigma0
A (N x 1) prior variance matrix for respondent ideal points \(C_{i0}\).
beta.mu
A (2 x 1) prior means matrix for all bill parameters \(\alpha_j\) and \(\beta_j\).
beta.sigma
A (2 x 2) prior covariance matrix for all bill parameters \(\alpha_j\) and \(\beta_j\).
omega2
A (N x 1) matrix with the evolutionary variance for each legislator \(\omega^2_{ix}\).
.control
list, specifying some control functions for estimation. Options include the following:
threads
integer, indicating number of cores to use. Default is to use a single core, but more can be
supported if more speed is desired.
verbose
boolean, indicating whether output during estimation should be verbose or not. Set FALSE by default.
thresh
numeric. Algorithm will run until all parameters correlate at 1 - thresh across
consecutive iterations. Set at 1e-6 by default.
maxit
integer. Sets the maximum number of iterations the algorithm can run. Set at 500 by default.
checkfreq
integer. Sets frequency of verbose output by number of iterations. Set at 50 by default.