legR | R Documentation |
Estimates the multi-dimensional dynamic IRT model.
legR(
X,
terms,
est_model = FALSE,
legis_data = NULL,
priors = NULL,
k = 5,
ndim = 2,
nperterm = NULL,
bestmin = 0,
othermax = 0,
dynIRT_control = list(threads = 1, verbose = TRUE, thresh = 1e-06, maxit = 500),
seed = 519,
...
)
X |
An |
terms |
A length |
est_model |
Logical indicating whether model should be estimated.
If |
legis_data |
A data frame giving information about the legislators whose
votes are in |
priors |
User specified priors to be passed to the |
k |
Number of dimensions for the GLRM to estimate. |
ndim |
Number of dimensions of the dynamic IRT model to be estimated. |
nperterm |
Minimum number of bills to include per term. |
bestmin |
Scalar indicating the minimum PRE value to be considered "well predicted" bythe model. |
othermax |
Scalar indicating the maximum PRE of the inferior dimension.
If |
dynIRT_control |
A list containing control parameters for the dynamic
IRT model. See the |
seed |
Random number generator seed passed down to estimation functions. |
... |
Other arguments to be passed down to |
Depending on est_model
either a list with the IRT inputs
for evaluation purposes or a list of models and a dataset of latent variable
estimates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.