simulateRespondents | R Documentation |
The function simulates n
answer profiles given a true value of theta and a battery's item parameters stored in a Cat
object.
## S4 method for signature 'Cat' simulateRespondents(catObj, theta, n)
catObj |
An object of class |
theta |
A numeric representing the true position on the latent trait. |
n |
A numeric indicating the number of answer profiles to simulate. |
Function returns a dataframe where each row is a possible answer profile simulated given the provided value of theta
Haley Acevedo, Ryden Butler, Josh W. Cutler, Matt Malis, Jacob M. Montgomery, Tom Wilkinson, Erin Rossiter, Min Hee Seo, Alex Weil
# Load Cat object data(grm_cat) # Simulate 5 response profiles given a theta of 2 sim_resp <- simulateRespondents(catObj = grm_cat, theta = 2, n = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.