Learn R Programming

TestDesign (version 1.0.1)

dataset_fatigue: Fatigue dataset

Description

Item-based example pool with item contents (95 items).

Arguments

Details

This pool is associated with the following objects:

  • itempool_fatigue An '>item_pool object.

  • itemattrib_fatigue A data frame containing item attributes.

  • constraints_fatigue A list containing 111 constraints.

Also, the following datasets are intended for illustrating expected data structures. See examples below.

  • itempool_fatigue_raw Item parameters.

  • itemattrib_fatigue_raw Item attributes.

  • itemcontent_fatigue_raw Item contents.

  • constraints_fatigue_raw Constraints.

  • resp_fatigue_raw Raw response data.

Examples

Run this code
# NOT RUN {
## Write to tempdir() and clean afterwards
f <- file.path(tempdir(), "itempool_fatigue.csv")
write.csv(itempool_fatigue_raw, f, row.names = FALSE)
itempool_fatigue <- loadItemPool(f)
file.remove(f)

f <- file.path(tempdir(), "itemattrib_fatigue.csv")
write.csv(itemattrib_fatigue_raw, f, row.names = FALSE)
itemattrib_fatigue <- loadItemAttrib(f, itempool_fatigue)
file.remove(f)

f <- file.path(tempdir(), "constraints_fatigue.csv")
write.csv(constraints_fatigue_raw, f, row.names = FALSE)
constraints_fatigue <- loadConstraints(f,
  itempool_fatigue, itemattrib_fatigue)
file.remove(f)

## Item contents for use in shiny app
f <- file.path(tempdir(), "itemcontent_fatigue.csv")
write.csv(itemcontent_fatigue_raw, f, row.names = FALSE)
file.remove(f)

## Raw item responses for reference
f <- file.path(tempdir(), "resp_fatigue.csv")
write.table(resp_fatigue_raw, f, row.names = FALSE, col.names = FALSE, sep = ",")
file.remove(f)

# }

Run the code above in your browser using DataLab