generate_test_responses: Generate simulated data

View source: R/generate_responses.R

generate_test_responsesR Documentation

Generate simulated data

Description

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

Usage

generate_test_responses(
  theta,
  items,
  performAssertions = TRUE,
  tryConvertToNumeric = TRUE
)

Arguments

theta

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

items

a list with test items' specification

performAssertions

a 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

a 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


tzoltak/rstyles documentation built on Dec. 4, 2024, 5:16 p.m.