<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: storing factor scores for use in regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284941#M15036</link>
    <description>&lt;P&gt;Take a look at PROC PLS--an excellent way of modeling multiple responses based on multiple predictive variables. &amp;nbsp;Just a different way of trying to solve a similar problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2016 19:10:15 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2016-07-15T19:10:15Z</dc:date>
    <item>
      <title>storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284890#M15027</link>
      <description>&lt;P&gt;Okay, so I ran a proc factor and it turns out I have 2 factors...fine, great.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then ran the proc score to create scores so that I could use them in my regression statements...one of the factors I could actually handle separately, but my SES variable has 2 continuous variables (hhincome, ageofmom), 1 binary (banked), and 1 categorical (highest)...and I need to use the SES factor as a predictor of my DVs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the code that works (including the proc factor that determined I had 2 factors, not just the one I thought):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc factor rotate=varimax ev scree min=1;
var welfare ssi foodstamps banked ageofmom hhincome highest;
run;

proc factor data=nlsyproject outstat=Factout
		method=prin rotate=varimax score;
	var  banked ageofmom hhincome highest;
title 'SESFactor Scoring';
run;

proc score data=nlsyproject score=factout out=Fscore;
	var banked ageofmom hhincome highest;
	run;

proc factor data=nlsyproject outstat=Factout
		method=prin rotateo=varimax score;
	var welfare foodstamps ssi;
title 'GovtAssist Scoring';
run;

proc score data=nlsyproject score=factout out=Fscore;
	var welfare foodstamps ssi;
	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So, how do I use 'SESFactor' as a predictor in my regression statements?&lt;/P&gt;
&lt;P&gt;I need to have some way to store the result and label it so I have some conciseness.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The GovtAssist factor I figure I can create a 0-3 scale for range of use 0=no assistance through 3=all types and then keep plugging along, but I have NO idea how to handle SES if not for this factor scoring thing that I can't seem to save the resulting score for use in the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 17:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284890#M15027</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2016-07-15T17:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284928#M15029</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why are you running two separate factor analysis? Can't it be done in a single run?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 18:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284928#M15029</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2016-07-15T18:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284933#M15031</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42042"&gt;@stat_sas﻿&lt;/a&gt;&amp;nbsp;Yes, it can be done in one factor analysis, but that confused me even more. I need to ensure that I have two separate predictors defined (govtassist and SES). I don't really care how they're titled, but I can't figure out how to run the variables that construct my SES factor as one unit. Is this possible? I figured out a way to make govtassist by redefining my variable. But I don't know how to combine 3 continuous and 1 binary variable and label the resulting factor...to then use that factor as a predictor in my regressions/other statistical tests.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that hhincome, ageofmom, banked, and highest construct the SES variable but if I run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg;&lt;/P&gt;
&lt;P&gt;model behavior=hhincome ageofmom banked highest;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it recognizing those 4 variables as my SES factor? And then when I add in male (to control for gender)&amp;nbsp;black hispanic (compared to whites) will my results be different if I have a defined SES factor than if I have those 4 variables separately listed?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ack!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any additional thoughts and/or feedback.&lt;/P&gt;
&lt;P&gt;K8&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 18:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284933#M15031</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2016-07-15T18:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284936#M15033</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What do you mean by &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"how to combine 3 continuous and 1 binary variable and label the resulting factor"?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are&amp;nbsp;&lt;SPAN&gt;hhincome ageofmom banked highest uncorrelated?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 19:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284936#M15033</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2016-07-15T19:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284940#M15035</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42042"&gt;@stat_sas﻿&lt;/a&gt;&amp;nbsp;You'll have to forgive me because I may not be explaining this correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, hhincome ageofmom banked and highest are correlated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My concern is whether or not I have to combine them into one specifically defined factor variable to represent all of them in the regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I could run&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg;&lt;/P&gt;
&lt;P&gt;model behavior= hhincome ageofmom banked highest&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR (if possible)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc reg;&lt;/P&gt;
&lt;P&gt;model behavior= SES (which encompasses the 4 listed above).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to do that or am I just over-complicating this?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 19:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284940#M15035</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2016-07-15T19:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284941#M15036</link>
      <description>&lt;P&gt;Take a look at PROC PLS--an excellent way of modeling multiple responses based on multiple predictive variables. &amp;nbsp;Just a different way of trying to solve a similar problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 19:10:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284941#M15036</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-15T19:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284942#M15037</link>
      <description>&lt;P&gt;I'll take a look,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham﻿&lt;/a&gt;. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 19:11:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284942#M15037</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2016-07-15T19:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284949#M15038</link>
      <description>&lt;P&gt;Proc Score creates the factor columns for you, but it is up to you to provide&amp;nbsp;nicer names like SES. As mentioned earlier, a single run of FACTOR and SCORE should&amp;nbsp;suffice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a really simple example. You will need to modify it to use your own variables, factor names, and MODEL statement. My&amp;nbsp;code is just for illustration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc factor data=sashelp.iris outstat=Factout nfactors=2
	method=prin rotate=varimax score;
    var petallength petalwidth sepallength sepalwidth;
run;


proc score data=sashelp.iris score=factout out=Fscore (rename=(factor1=someNewNameLikeSES factor2=someOtherNewName);
	var petallength petalwidth sepallength sepalwidth;
run;

 
proc reg data = Fscore ;
	model someNewNameLikeSES = someOtherNewName; 
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jul 2016 19:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284949#M15038</guid>
      <dc:creator>rayIII</dc:creator>
      <dc:date>2016-07-15T19:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284962#M15040</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16472"&gt;@rayIII﻿&lt;/a&gt;&amp;nbsp;Okay, I'm feeling good about this, but it won't let me rename them. When I type in "rename" like you did, it doesn't turn blue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And am I reading your last section of code correctly that I would set my factors equal to one another in the regression statement? Why would I do that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, K8&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 20:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284962#M15040</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2016-07-15T20:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284965#M15041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If variables are highly correlated then first step after running factor analysis is to see eigen values which represent&lt;BR /&gt;variation explained by factors. As an example, if first eigen value explains 80% of the variation then first factor&lt;BR /&gt;score would be sufficient for subsequent analysis and this can also be used as a representative of four variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the&amp;nbsp;other hand, if more top two eigen values significantly expains most of the variation in orginal variables then you have to&lt;BR /&gt;use two factor scores in regression analysis. Lastly, running separate factor analysis may produce factor scores which may&lt;BR /&gt;be again correlated and can introduce overfitting and destablize parameter estimates.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 20:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284965#M15041</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2016-07-15T20:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284966#M15042</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16472"&gt;@rayIII﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I GOT IT!! I GOT IT!! I GOT IT!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the factors to predict my DV and it worked!!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THANK YOU!!!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 20:35:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284966#M15042</guid>
      <dc:creator>ksmielitz</dc:creator>
      <dc:date>2016-07-15T20:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: storing factor scores for use in regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284967#M15043</link>
      <description>&lt;P&gt;Glad you got it! Sorry, I left off a parenthesis.&amp;nbsp;It should have been:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc score data=sashelp.iris score=factout out=Fscore (rename=(factor1=someNewNameLikeSES factor2=someOtherNewName)&lt;STRONG&gt;)&lt;/STRONG&gt;;&lt;BR /&gt;var petallength petalwidth sepallength sepalwidth;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, my&amp;nbsp;proc reg call was just an example to show how it to use&amp;nbsp;scored data in a regression analysis. You would use your own Model statement like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;model behavior =&lt;SPAN&gt;someNewNameLikeSES someOtherNewName;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 20:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/storing-factor-scores-for-use-in-regression/m-p/284967#M15043</guid>
      <dc:creator>rayIII</dc:creator>
      <dc:date>2016-07-15T20:35:33Z</dc:date>
    </item>
  </channel>
</rss>

