[R] how to calculate factor Scoring Coefficient s

2008-01-16 Thread Xingwang Ye
Dear R users,
Recently, I am learning by myself to do factor analysis with R.
Could some one guide me how to calculate 'factor scoring coefficients' 
or obtain 'factor scores' with the results from principal( ) or 
factor.pa( ) function in psych package?
In SAS, it can be done with option SCORE by PROC FACTOR procedure.
Many Thanks.

felix

__
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.


[R] What is the 'scale' in princomp() function?

2008-01-12 Thread Xingwang Ye
Dear R users,
When I tried to use princomp() from stats packages to do Principal 
Components Analysis, I am not very clear what is the scale.
And the scores are different from PROC PRINCOMP procedure from SAS.
 
Using the example data from this package:

restpc - princomp(USArrests, cor = TRUE)
  restpc$scale
Murder Assault UrbanPop Rape
 4.311735 82.500075 14.329285 9.272248
  sd(USArrests)
 Murder Assault UrbanPop Rape
 4.355510 83.337661 14.474763 9.366385

Why 'restpc$scale' is different from 'sd(USArrests)'?

felix

__
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.