Look at the mvrnorm function in the MASS package. The within or transform functions may also be of use to you in creating the data as a combination of the factors that you create using mvrnorm.
On Tue, Jan 7, 2014 at 2:15 PM, sevda datlı <sevdad...@gmail.com> wrote: > Hello, > > I am a master student in Educational Measurement and Evaluation, my thesis > subject is “comparison of estimation methods used for confirmatory factor > analysis”. For my thesis study, I need to generate datas that provides some > features. I will generate these datas by changing correlation between > factors, number of factors, types of items, number of items for a factor, > sample size(for example, i want to generate seperate datas for 200 and 500 > as sample size ). I would be very grateful if you would help me to generate > these datas using R. I installed the R program, also installed the “psych” > package but I could not go any further to generate my desired datas. > Best Regards, > Sevda > > [[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. > -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com ______________________________________________ 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.