Unlimited learning, half price | 50% off
Get 50% off unlimited learning

irt (version 0.2.9)

generate_resp_set: Generate a random item responses (Response_set object)

Description

generate_resp_set Generate dichotomous (0 or 1) or polytomous responses for given ability and item parameter(s). This function returns a Response_set-class object,

Usage

generate_resp_set(ip, theta, prop_missing = 0)

Value

Returns a Response_set-class object.

Arguments

ip

An Item-class, Itempool-class, Testlet-class object containing the item parameters.

theta

An object containing the subject ability parameters.

prop_missing

Proportion of responses that should be missing. Default value is 0.

Author

Emre Gonulates

Examples

Run this code
ip <- generate_ip(model = "3PL", n = 15)
generate_resp_set(ip, theta = rnorm(5))

# Set the proportion of missing responses:
generate_resp_set(ip, theta = rnorm(7), prop_missing = 0.3)

Run the code above in your browser using DataLab