generate_test_responses: Generate simulated data

Description Usage Arguments Value

View source: R/generate_responses.R

Description

Generates simulated responses to a test given informations about items values of latent traits.

Usage

1
2
3
4
5
6
generate_test_responses(
  theta,
  items,
  performAssertions = TRUE,
  tryConvertToNumeric = TRUE
)

Arguments

theta

matrix (or data frame) of already generated latent traits' values

items

list with test items' specification

performAssertions

logical value indicating whether function should perform assertions of the other arguments (TRUE by default, may be changed to FALSE for a little performance gain)

tryConvertToNumeric

logical value indicating whether function should try to convert generated responses to numeric values (technically responses are get from rownames of the items' scoring matrices that are character vectors)

Value

matrix with responses on items generate_item_responses_sqn, generate_item_responses_sml


rstyles documentation built on July 23, 2021, 5:07 p.m.