Skip to contents

Load data from existing files

Usage

data_existing(
  resp_path = "data/sample-resp.csv",
  theta_path = "data/true-sample-theta.rds",
  diff_path = "data/true-sample-diff.rds"
)

Arguments

resp_path

A file path to a long form .csv file. File should have three columns, id which contains a numeric respondent identifier, item which contains a numeric item identifier, and resp which contains an item response. Be sure the form of the item response comports with the parameter update functions you choose to use.

theta_path

A file path to a .rds file that contains a vector of true theta vales.

diff_path

A file path to a .rds file that contains a vector of true item difficulty vales.

Value

A list with three components: A dataframe of item response named resp, a vector of true respondent abilities named theta_tru, and a vector of true item difficulties named diff_tru