BookmarkSubscribeRSS Feed
BSNY
Calcite | Level 5

Hi,

I have to run a set of correlations on a multitude of variables from different datasets against one set variable. I have run factor analysis to reduce the number of variables in the different datasets, but am unsure of how to use the factor scores on the original dataset in order to run correlations.  

I am attaching the original dataset I used for the Factor Analysis along with the Factor Scores it output. In the attached dataset, Q1-Q4 is Factor 1 and Q5 is Factor 2. How should I use the factor scores? 

My objective is to run correlations of Factor 1 & Factor 2 with the one set variable I have.

 

Also note that while the factor analysis was done at the total geography level, the correlation analysis data is at the individual geography level.

Can anyone please help?

Thank you!

 

3 REPLIES 3
PaigeMiller
Diamond | Level 26

I have to run a set of correlations on a multitude of variables from different datasets against one set variable. I have run factor analysis to reduce the number of variables in the different datasets, but am unsure of how to use the factor scores on the original dataset in order to run correlations.

 

Unfortunately, I consider this too vague to provide a suggestion on what you should do. In particular, you talk about "run correlations" which to me is not something I would do after doing a factor analysis. Perhaps it would help if you take a step back and describe in words, at a high level, the data and the goals of the analysis without going down to the next level of detail about what exact statistical methods you think you should use.

 

Nor does your description of your data set help, and most of us will not download Microsoft Office files as they are a security threat. The proper way to present data here in the SAS Communities is via these instructions.https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/

--
Paige Miller
BSNY
Calcite | Level 5

I should have added apologies in advance to my vague note above because I felt it would be vague even as I was writing it 😞

 

The correlation exercise is being done in order to see if an existing survey output can be replaced by another one. One such replacement may be from the 5 scores that's in the dataset I posted. So I was running a FA to reduce those with the hope of then running a correlation of the reduced factors with the existing survey output variable. 

 

HTH?

 

Q1Q2Q3Q4Q5 Factor1Factor2
53.7351.4453.4246.4269.84 0.2580010750.647390095
54.4552.2654.0447.1169.96 0.9108629310.963478325
53.751.6953.446.5870.14 0.4422579290.90326093
54.8952.8254.6548.270.79 1.6608378161.77537136
51.5449.1451.1644.669.62 -1.663734433-0.200556119
51.7149.5651.9545.6568.33 -1.607211737-1.041845404
53.2351.0153.0246.5669.16 -0.2583231960.005303993
52.1149.2651.644.968.95 -1.597151714-0.601888451
53.4850.6352.2345.7169.89 -0.3694183230.472224307
53.5251.0352.9345.9670.3 0.0663249040.887321494
52.8350.4752.1145.4170.98 -0.2778450711.203947433
52.5550.6752.1345.5369.75 -0.6046274970.259908893
52.6350.3852.0945.2970.06 -0.6335962960.465206974
53.1250.8452.2845.7569.79 -0.3756417760.38480552
53.6951.5852.846.569.65 0.1292480270.472531862
52.9851.0552.4346.2269.78 -0.2557045030.407790789
52.650.4552.2246.2669.22 -0.747456386-0.137740195
53.5251.3153.146.3469.67 0.0507528410.457357297
54.5351.7853.6947.8966.93 -0.140803183-1.399213122
55.1352.9654.4448.8166.88 0.61734577-1.172211796
57.1355.3257.150.9766.26 2.388636521-0.943603271
55.4953.8755.1449.6265.34 0.773845484-2.145014425
55.8754.1855.2450.8965.82 1.233400816-1.663826491
PaigeMiller
Diamond | Level 26

I'm still lost as I don't udnerstand the reason for running a correlation after you run a factor analysis.

 

So again I ask for you to describe the problem you are trying to solve, in words, at a high conceptual level, without discussing specific statistical methods.

--
Paige Miller

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 538 views
  • 0 likes
  • 2 in conversation