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$
    – Karsten7
    Dec 9, 2015 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, 2015 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, 2015 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, 2015 at 19:52

1 Answer 1

RSet["matR", matData];

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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