make_data: Make Data for MI-DIRT

View source: R/make_data.R

make_dataR Documentation

Make Data for MI-DIRT

Description

Makes data to pass to the dynamic IRT function.

Usage

make_data(X, terms, legis_data = NULL, ...)

Arguments

X

Matrix of votes.

terms

Vector of term numbers corresponding to each of the columns in X.

legis_data

A data frame minimally giving an observation identifier for the legislators.

...

Other arguments to be passed down - currently not implemented.

Value

A list that can be passed to the dynIRT() function from emIRT.


davidaarmstrong/legR documentation built on Oct. 13, 2023, 1:08 p.m.