When I try to create a Rasch simulation of data using the sim.rasch
function, I get more items than I intend

#My code

library(eRm)

#Number of items
k <- 20

#Number of participants
n <- 100


#Create Rasch Data
#sim.rasch(persons, items, seed = NULL, cutpoint = "randomized")

r.simulation <- sim.rasch(n,k)

I end up with 20 participants and 100 items, but the instructions say
otherwise (and I believe I have the most up to date).  I reverse the n and
k

sim.rasch(k,n); it works out to how I intended; 100 participants and 20
items.


Can someone explain to me what I'm missing?  I've read the package
instructions and didn't see myself missing something (inputting vectors
instead of an integer).

James

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to