How can I do Factor Analysis with Mathematica?

This is my best attempt so far:

matData = {m, r, c, b, age, edu, mhi};

REvaluate["factanal(" matData ",2)"]

The elements of matData are arrays containing numerical values.

  • $\begingroup$ Would you like to do it without using RLink? $\endgroup$
    – Karsten 7.
    Dec 9 '15 at 19:09
  • $\begingroup$ My priority is that it's as simple as is possible, but beyond that I guess I'd have a mild preference for doing it without RLink - I am more comfortable with Mathematica than R! But I wasn't able to find anything on google or Mathematica's help that directly related. $\endgroup$
    – Isaac
    Dec 9 '15 at 19:11
  • 1
    $\begingroup$ There are a few demonstrations related to factor analysis; have you already taken a look at their code for inspiration? $\endgroup$
    – MarcoB
    Dec 9 '15 at 19:21
  • 2
    $\begingroup$ Have you looked at the Analysis of Variance Package that comes with Mathematica? In particular the ANOVA function. $\endgroup$
    – Edmund
    Dec 9 '15 at 19:52
RSet["matR", matData];

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.