[R] Simulating dataset using Parallel Latent CTT model?

Nidhi Kohli nidhik at umd.edu
Fri Dec 26 14:27:24 CET 2008

I am trying to simulate a dataset using Parallel Latent CTT model and this is what i have done so far:


#Importing psych library for all the simulation related functions


# Settting the working directory path to C:/NCME


#Using the function to generate the data

GenData <- congeneric.sim(N=500, loads = c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1), short = FALSE)

#Rounding upto 2 decimal places while showing the correlation matrix


#Factor Score
FactorScore=factor.pa(GenData$observed,1,scores = "TRUE", rotate="none")


Please let me know if I am moving into the right direction, if not then, please let me know the correct way to simulate the dataset

Thanks in Advance


Nidhi Kohli
Nidhi Kohli, M.Ed.
Doctoral Student
Department of Measurement, Statistics 
 and Evaluation 
University of Maryland
1230 Benjamin Building
College Park, MD 20742-1115

e-mail: nidhik at umd.edu

More information about the R-help mailing list