<?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: how to consider or get fixed effects information to obtain dependent variables. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575026#M162568</link>
    <description>&lt;P&gt;You add SIC and FYEAR into the MODEL statement, since your code has already placed them into the CLASS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2019 18:29:36 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-07-19T18:29:36Z</dc:date>
    <item>
      <title>how to consider or get fixed effects information to obtain dependent variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575019#M162561</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyreg data=crdsimple;
class sic fyear idvc ids loss;
model rating = logat roa lev idvc ids loss/ solution;

run;

data crd2;
set crdsimple;
rtmade = 16.8313718 -0.9310491*logat-1.0102761*roa+0.7764174*lev-2.4251711*idvc-0.4183952*ids+1.5549358*loss ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am doing here is 1) to get coefficient estimates and 2) use these estimate to obtain dependent variables.&lt;/P&gt;&lt;P&gt;Since I used 2 fixed effect(sic and fyear), I may need to reconsider these 2 when calculating dependent variables again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, there is no output statement showing fixed effects and wonder how one can obtain dependent variables with fixed effects?&lt;/P&gt;&lt;P&gt;Simply, I need intercept so used proc survey instead of proc glm and, so far, I am satisfied with the outcome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculated ratings(rtmade) are fairly similar to real ratings given in general and this makes me think that I need to consider fixed effects!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to consider fixed effects?&lt;/P&gt;&lt;P&gt;Plus,&amp;nbsp; I have yearly effects and more... I may need a good and simple coding to put these effects. If not, I should put each year's effect manually, which is not recommended at all. (like this... If year=1999 then rtmade+some number for 1999... and do this multiple times)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 18:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575019#M162561</guid>
      <dc:creator>JKCho</dc:creator>
      <dc:date>2019-07-19T18:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to consider or get fixed effects information to obtain dependent variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575021#M162563</link>
      <description>&lt;P&gt;Do you mean: how to use fixed effects to PREDICT dependent variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean how you can use SIC and FYEAR since they are categorical ?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 18:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575021#M162563</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-19T18:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to consider or get fixed effects information to obtain dependent variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575024#M162566</link>
      <description>Sorry for this confusion.&lt;BR /&gt;&lt;BR /&gt;I mean the second.&lt;BR /&gt;They are categorical so I need to add more effects by each SIC and each FYEAR after my getting DV value from my equation of RTMADE. I simply want to retrieve the values of each categorical effects.</description>
      <pubDate>Fri, 19 Jul 2019 18:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575024#M162566</guid>
      <dc:creator>JKCho</dc:creator>
      <dc:date>2019-07-19T18:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to consider or get fixed effects information to obtain dependent variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575026#M162568</link>
      <description>&lt;P&gt;You add SIC and FYEAR into the MODEL statement, since your code has already placed them into the CLASS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 18:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575026#M162568</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-19T18:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to consider or get fixed effects information to obtain dependent variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575029#M162571</link>
      <description>wow... that is it...&lt;BR /&gt;I was so curious...why it didn't have the info.&lt;BR /&gt;Besides, Do you also know by any change the coding to put these categorical effects?&lt;BR /&gt;&lt;BR /&gt;Cuz I currently do not know it. I am thinking of doing like.... if year=1999 then rtmade+some number of 1999's year effect ... and do this multiple times)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jul 2019 18:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575029#M162571</guid>
      <dc:creator>JKCho</dc:creator>
      <dc:date>2019-07-19T18:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to consider or get fixed effects information to obtain dependent variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575031#M162573</link>
      <description>&lt;P&gt;Each year, and each SIC should have a regression coefficient estimated, which you can view with the SOLUTION option to the MODEL statement.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 18:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575031#M162573</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-19T18:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to consider or get fixed effects information to obtain dependent variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575036#M162578</link>
      <description>My previous question was not that clear I intended.&lt;BR /&gt;I meant if there is a better code to put these coefficients in the equation,&lt;BR /&gt;&lt;BR /&gt;rtmade = 16.8313718 -0.9310491*logat-1.0102761*roa+0.7764174*lev-2.4251711*idvc-0.4183952*ids+1.5549358*loss&lt;BR /&gt;&lt;BR /&gt;to obtain ratings(there are many missing ratings so I needed to obtain coefficients to estimate dependent variables). However, there are so many categories. I simply asked if I can make another code instead of writing each SIC and FYEAR coefficients on my equation.</description>
      <pubDate>Fri, 19 Jul 2019 18:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575036#M162578</guid>
      <dc:creator>JKCho</dc:creator>
      <dc:date>2019-07-19T18:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to consider or get fixed effects information to obtain dependent variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575060#M162590</link>
      <description>&lt;P&gt;I have never done this with PROC SURVEYREG, but it works in PROC GLM and PROC REG, so I'm guessing it will work in PROC SURVEYREG. You add to the data set CRDSIMPLE records which contain the values you want to predict at (values of logat roa lev idvc ids loss sic fyear) but leave the dependent variable RATING missing. Then when you request predicted values from SURVEYREG with the OUTPUT command, the predicted RATINGS for all records (the ones which have a non-missing Y and the ones which have a missing Y) will be in this output data set.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 21:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575060#M162590</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-19T21:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to consider or get fixed effects information to obtain dependent variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575096#M162608</link>
      <description>output p=pred was the one I want and proc scoring too. Thank you for your help!!!!</description>
      <pubDate>Sat, 20 Jul 2019 05:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-consider-or-get-fixed-effects-information-to-obtain/m-p/575096#M162608</guid>
      <dc:creator>JKCho</dc:creator>
      <dc:date>2019-07-20T05:45:58Z</dc:date>
    </item>
  </channel>
</rss>

