<?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: Plain vanilla OLS with fixed effects in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55181#M15343</link>
    <description>If you are using the standard definition of a fixed effect, then PROC REG certainly does work on fixed effects. PROC REG does not work on random effects.</description>
    <pubDate>Mon, 20 Oct 2008 12:46:09 GMT</pubDate>
    <dc:creator>Paige</dc:creator>
    <dc:date>2008-10-20T12:46:09Z</dc:date>
    <item>
      <title>Plain vanilla OLS with fixed effects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55180#M15342</link>
      <description>I want to run a simple OLS regression with fixed effects. (i.e. y= a b c, with fixed effects on d). I've been using proc mixed, but I am more comfortable with the  output from traditional OLS like proc reg, which I don't believe supports fixed effects. The help menu is so complex. Any simple ideas?</description>
      <pubDate>Thu, 16 Oct 2008 23:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55180#M15342</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-16T23:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Plain vanilla OLS with fixed effects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55181#M15343</link>
      <description>If you are using the standard definition of a fixed effect, then PROC REG certainly does work on fixed effects. PROC REG does not work on random effects.</description>
      <pubDate>Mon, 20 Oct 2008 12:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55181#M15343</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2008-10-20T12:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Plain vanilla OLS with fixed effects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55182#M15344</link>
      <description>Short of creating a dummy variable for every occurance of the fixed effect (over 100), what are my options for running OLS with fixed effects? With PROC MIXED, I use a class statement, but that is not available on PROC REG. I see that PROC VARCOMP has a class statement, but I have not been successful in implementing it. There must be an easy way to do this that I'm missing. Alternativly, is there any way to get an R2 out of PROC MIXED? Thanks.</description>
      <pubDate>Tue, 21 Oct 2008 18:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55182#M15344</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-21T18:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Plain vanilla OLS with fixed effects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55183#M15345</link>
      <description>Ah, terminology.&lt;BR /&gt;
&lt;BR /&gt;
I call what you are talking about a CLASS (or classification) effect, not a fixed effect.&lt;BR /&gt;
&lt;BR /&gt;
Your choices are PROC GLM or PROC MIXED. Both use CLASS statements. PROC GLM provides R-squared values, PROC MIXED does not. PROC MIXED uses maximum likelihood estimation, whereas PROC GLM uses least squares estimation (in some cases, least squares and maximum likelihood will give the same answers).</description>
      <pubDate>Tue, 21 Oct 2008 18:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55183#M15345</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2008-10-21T18:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Plain vanilla OLS with fixed effects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55184#M15346</link>
      <description>Dear Paige:&lt;BR /&gt;
I am a new user for SAS.  I have some questions about fixed-effect in SAS program and I found your answers from the Yahoo searching.&lt;BR /&gt;
Q1: You were saying that "PROC REG certainly does work on fixed effects".  If I want to get the INVEST EFFICIENCY(y) and SALE(x1) / ASSET(x2) fixed effect regression for the different companies (COMPANY) and years (YEAR), could you please show me the detail codes?&lt;BR /&gt;
(like: PROC REG DATA=a1???????;m1 model= y= x1 x2?????)&lt;BR /&gt;
&lt;BR /&gt;
Q2:if some companies do not have one of variables (x1 or x2), will it be deleted during the calculation.&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
NEW USEr</description>
      <pubDate>Thu, 23 Oct 2008 07:02:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55184#M15346</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-23T07:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Plain vanilla OLS with fixed effects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55185#M15347</link>
      <description>In general, I don't write code for other people. However, if you try something and you can't figure out why it isn't working, I would be happy to help.&lt;BR /&gt;
&lt;BR /&gt;
Furthermore, your description of the problem is somewhat vague. I don't know how your data is structured, and its not clear to me what you mean by "... for the different companies (COMPANY) and years (YEAR)".</description>
      <pubDate>Thu, 23 Oct 2008 12:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55185#M15347</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2008-10-23T12:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Plain vanilla OLS with fixed effects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55186#M15348</link>
      <description>I would like to run the fixed-effect regression.  First of all, I need to calculate the average values of the sale, asset and invest of different years for company AAA.  Then do the same thing for companies BBB and CCC.   Next, each original value minuses the average value, then the differences are used to run the regression.   That is fixed-effect regression, right?&lt;BR /&gt;
&lt;BR /&gt;
Year  company  sale  asset   invest&lt;BR /&gt;
1991   AAA  23   56  3.2&lt;BR /&gt;
1992   AAA  25   68  3.5&lt;BR /&gt;
1993   AAA  22   45   4.2&lt;BR /&gt;
1992   BBB  32   43   6.2&lt;BR /&gt;
1991   CCC  1002  256  12.2&lt;BR /&gt;
1992   CCC  1032  246  13.5&lt;BR /&gt;
1993   CCC  1042  276   16.5&lt;BR /&gt;
&lt;BR /&gt;
I learn from the SAS manual to write the following codes.  But I do not know whether it is correct or not?&lt;BR /&gt;
&lt;BR /&gt;
PROC GLM data=p1;&lt;BR /&gt;
ABSORB company;&lt;BR /&gt;
CLASS year;&lt;BR /&gt;
MODEL invest= sale asset year/SOLUTION;&lt;BR /&gt;
OUTPUT  OUT=p2;&lt;BR /&gt;
RUN;  QUIT;&lt;BR /&gt;
&lt;BR /&gt;
Q1: The above codes are correct, aren’t they? &lt;BR /&gt;
Q2;  I want to output the final regression results (including the R-square, F-values  etc.) to one file(p2).  However, the file (p2) resulted from the above procedure (codes) are the new DATA set. How do get the regression result (including the R-square, F-values  etc.) which I want?&lt;BR /&gt;
Q3. if some companies do not have one of variables (sale or asset), will it be deleted during the calculation,&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
NEW USER (from Taiwan)</description>
      <pubDate>Thu, 23 Oct 2008 13:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55186#M15348</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-23T13:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Plain vanilla OLS with fixed effects</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55187#M15349</link>
      <description>A1: Looks good to me. Did you try it? Does it work for you?&lt;BR /&gt;
&lt;BR /&gt;
A2: You need to use the ODS OUTPUT statement to get these statistics. SAS Help specifies the table names you would want to choose to get certain statistics.&lt;BR /&gt;
&lt;BR /&gt;
A3: The entire row is not used if any of the input or output variables is missing.</description>
      <pubDate>Mon, 03 Nov 2008 20:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plain-vanilla-OLS-with-fixed-effects/m-p/55187#M15349</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2008-11-03T20:46:42Z</dc:date>
    </item>
  </channel>
</rss>

