[R] factanal {mva} question

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Nov 22 13:28:56 CET 2001


On Thu, 22 Nov 2001, Nick Kostrov wrote:

> Hello!
>
> I have a question about the factanal function.
> This function returns at the end  test statistics like this:
>
> Test of the hypothesis that 4 factors are sufficient.
> The chi square statistic is 4.63 on 2 degrees of freedom.
> The p-value is 0.0988
>
>
> Is it possible to get the chi square statistic and the p-value as variables,
> not the text on the screen? An object of class "factanal" have no components
> of the p-value and the chi square statistic but the function print  them on
> the screen.

Yes.  Look at print.factanal for the code needed.

It's done that way for compatibility.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list