sim.VSS.RdSimulation is one of most useful techniques in statistics and psychometrics. Here we simulate a correlation matrix with a simple structure composed of a specified number of factors. Each item is assumed to have complexity one. See circ.sim and item.sim for alternative simulations.
sim.VSS(ncases=1000, nvariables=16, nfactors=4, meanloading=.5,dichot=FALSE,cut=0)number of simulated subjects
Number of variables
Number of factors to generate
with a mean loading
dichot=FALSE give continuous variables, dichot=TRUE gives dichotomous variables
if dichotomous = TRUE, then items with values > cut are assigned 1, otherwise 0.
a ncases x nvariables matrix