loadData is a data loading function for creating a PROsetta_data object, for performing scale linking/equating in the 'PROsetta' package. loadData assumes the response data has been reverse-coded for applicable items.

loadData(
  response,
  itemmap,
  anchor,
  item_id = NULL,
  person_id = NULL,
  scale_id = NULL,
  model_id = NULL,
  input_dir = getwd()
)

Arguments

response

response data containing case IDs and item responses. This can be a .csv filename or a data.frame object.

itemmap

an item map containing item IDs and scale IDs. This can be a .csv filename or a data.frame object.

anchor

anchor data containing item parameters for anchor items. This can be a .csv filename or a data.frame object.

item_id

the column name to look for item IDs. Automatically determined if not specified.

person_id

the column name to look for case IDs. Automatically determined if not specified.

scale_id

the column name to look for scale IDs. Automatically determined if not specified.

model_id

the column name to look for model IDs. Automatically determined if not specified.

input_dir

the directory to look for the files.

Value

loadData returns a PROsetta_data object containing the loaded data.