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]]
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? <sevdadtli at 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 at 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. 538280 at gmail.com
At 21:15 07/01/2014, =?ISO-8859-9?Q?sevda_datl=FD?= 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.Dear Sevda The psych package contains a number of functions for simulating data. I am not sure whether one of them exactly fits your problem but it would be worth checking.>Best Regards, >Sevda > > [[alternative HTML version deleted]]Michael Dewey info at aghmed.fsnet.co.uk http://www.aghmed.fsnet.co.uk/home.html