Learn R Programming

TestDesign (version 1.0.2)

dataset_science: Science dataset

Description

Item-based example item pool (1000 items).

Arguments

Details

This pool is associated with the following objects:

  • itempool_science An '>item_pool object.

  • itemattrib_science A data frame containing item attributes.

  • constraints_science A list containing 36 constraints.

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

  • itempool_science_raw Item parameters.

  • itemattrib_science_raw Item attributes.

  • constraints_science_raw Constraints.

Examples

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

f <- file.path(tempdir(), "itemattrib_science.csv")
write.csv(itemattrib_science_raw, f, row.names = FALSE)
itemattrib_science <- loadItemAttrib(f, itempool_science)
file.remove(f)

f <- file.path(tempdir(), "constraints_science.csv")
write.csv(constraints_science_raw, f, row.names = FALSE)
constraints_science <- loadConstraints(f,
  itempool_science, itemattrib_science)
file.remove(f)

# }

Run the code above in your browser using DataLab