turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- save factor scores using script

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted
##
##### save factor scores using script

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Feb 11, 2016 9:39 AM
(1439 views)

I am wondering anyone knows how to save factor scores in a table using script. When I study “factor analysis”, I am unable to include the factor scores in the report except saving them in a table by clicking “save rotated components.”

I'm obtaining the factors using Analysis->Consumer Research -> Factor Analysis using a factoring method of Principal Components and Prior Commuality and a rotation method of varimax. When the analysis is done, I was able to save the factor scores into the original table by clicking "Save Rotated Components" under the red triangle of "Factor Analysis on Correlations". Is it possible to save the factor scores using scripts?

Thanks for the help!

2 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Feb 11, 2016 10:06 AM
(1310 views)

I used the Socioeconomic data provided in the sample data and ran the following script.

//dt=($Sample data/socioeconomic.jmp")

fa=dt<<Factor Analysis(

Y(

:Total Population,

:Median School Years,

:Total Employment,

:Professional Services,

:Median House Value

),

Estimation Method( "Row-wise" ),

Variance Scaling( "Correlations" ),

Fit( "ML", "SMC", 2, "Varimax" ),

SendToReport(

Dispatch(

{"Factor Analysis on Correlations with 2 Factors: Maximum Likelihood ",

"Factor Loading Plot"},

"Loading Plot for Rotated Factor",

FrameBox,

{Frame Size( 52, 36 )}

)

)

);

fa << (Fit[1] << Save Rotated Components);

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Feb 12, 2016 7:48 AM
(1310 views)

It works! Thanks!