Thank you so much, it helped a lot!! Cheers!
Thibault On Tue, Apr 12, 2011 at 3:31 PM, G. Jay Kerns [via R] < ml-node+3445833-834565539-229...@n4.nabble.com> wrote: > Dear Thibault, > > On Tue, Apr 12, 2011 at 5:06 PM, Thibault Grava > <[hidden > email]<http://user/SendEmail.jtp?type=node&node=3445833&i=0&by-user=t>> > wrote: > > > Hello Jay, > > > > I know that an old post but I really need to calculate KMO for my data > and > > this is the only thread I found on the subject. > > > > I'm a very newby to R so sorry for the odd questions. > > > > It looks like in your reply that you use "kmo" as a function and you > apply > > it to your data "D"... I tried that on my data but it says "Error: > couldn't > > find function "kmo"". I installed and loaded the package "corpcor" but it > > > still doesn't work... did I get it wrong? > > > > Also i would like to use the complete function (see > > http://tolstoy.newcastle.edu.au/R/help/05/12/17235.html), but I don't > really > > understand how to use it... where should I enter the data directory?? > > > > I thank you a lot for your help. > > > > Thibault > > > > > Please forgive me, but I'm not sure I really understand what your > question is. My advice would be to go here: > > https://stat.ethz.ch/pipermail/r-help/2007-August/138049.html > > and copy-paste the function listed there - it looks like > > kmo = function( data ){ > > ...bunch of stuff here... > > } # end of kmo() > > into an R session, for instance, on the Windows RGui. If you like, > you can test that everything works with the example shown right below > that (just copy-paste, again). You don't need any corpcor package, > all you need is MASS which should have shipped with the R you are > using. > > You also don't need a data directory. What you need is a matrix > (called "X" in my message) with the data stored in the correct > order/positions. See the Trujillo-Ortiz et al. discussion (linked in > my message) for lots more detail about what the matrix means and how > to set it up. If you are having trouble setting up a data matrix in > general then I recommend the R documentation which you can find under > the Help menu. > > I just double-checked and both the function and example still work > like a charm, almost 4 years later. (?!) > > Good luck, and I hope this helps. > Jay > > > ______________________________ > G. Jay Kerns, Ph.D. > Youngstown State University > http://people.ysu.edu/~gkerns/ > > ______________________________________________ > [hidden > email]<http://user/SendEmail.jtp?type=node&node=3445833&i=1&by-user=t>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. > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://r.789695.n4.nabble.com/How-to-calculate-KMO-tp904281p3445833.html > To unsubscribe from How to calculate KMO?, click > here<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=904281&code=dHliby50b3V0LnNldWxAZ21haWwuY29tfDkwNDI4MXwtMTYyODI1NzYyMg==>. > > -- View this message in context: http://r.789695.n4.nabble.com/How-to-calculate-KMO-tp904281p3445966.html Sent from the R help mailing list archive at Nabble.com. [[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.