<?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 how to estimate a regression model in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72528#M21002</link>
    <description>I have one dependent variable, three independent variables, I am to estimate a regression model. Actually, I am not very sure about the procedure to do this.&lt;BR /&gt;
Till so far, I ran GLM procedure for each independent variable, and found that two themselves  are significant, one itself is not. So next, should I do interaction for all of them? No matter significant or not, or something else?&lt;BR /&gt;
Set the dependent variable is A, the independent variables are B, C and D, I use the following model&lt;BR /&gt;
"model A=B|C|D", then find there is no output, I guess it is because of the DF?&lt;BR /&gt;
Who can help me with this?&lt;BR /&gt;
...Thank you all.</description>
    <pubDate>Wed, 15 Sep 2010 19:41:51 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-09-15T19:41:51Z</dc:date>
    <item>
      <title>how to estimate a regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72528#M21002</link>
      <description>I have one dependent variable, three independent variables, I am to estimate a regression model. Actually, I am not very sure about the procedure to do this.&lt;BR /&gt;
Till so far, I ran GLM procedure for each independent variable, and found that two themselves  are significant, one itself is not. So next, should I do interaction for all of them? No matter significant or not, or something else?&lt;BR /&gt;
Set the dependent variable is A, the independent variables are B, C and D, I use the following model&lt;BR /&gt;
"model A=B|C|D", then find there is no output, I guess it is because of the DF?&lt;BR /&gt;
Who can help me with this?&lt;BR /&gt;
...Thank you all.</description>
      <pubDate>Wed, 15 Sep 2010 19:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72528#M21002</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-15T19:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to estimate a regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72529#M21003</link>
      <description>Generally, you decide on the appropriate model without looking at the data. You use your knowledge of the system that you are studying to say. For example: youd decide you want main effects for B, C and D, and the B*C interaction and the B*D interaction, but not the C*D interaction. This is not something I can help with, you or someone you work with should be able to specify this. &lt;BR /&gt;
&lt;BR /&gt;
Once that is done, you fit the model, all desired terms. At this point, statisticians disagree; however my advice is to leave all terms in the model. Evaluate the model by examining the residuals. If there are problems in the residuals, you may need to modify the model.&lt;BR /&gt;
&lt;BR /&gt;
As far as your problem where there is no output, you'd have to tell us more, or show us the listing and/or log file.</description>
      <pubDate>Wed, 15 Sep 2010 19:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72529#M21003</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2010-09-15T19:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to estimate a regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72530#M21004</link>
      <description>I will work on deciding the main effects, thank you so much!&lt;BR /&gt;
The problem I said there is no output means, in the output window, there is "..." instead of numbers for the F-value and P-value. Is it about DF?&lt;BR /&gt;
Thank you.</description>
      <pubDate>Wed, 15 Sep 2010 20:02:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72530#M21004</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-15T20:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to estimate a regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72531#M21005</link>
      <description>Can you show me an example of the output?</description>
      <pubDate>Thu, 16 Sep 2010 13:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72531#M21005</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2010-09-16T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to estimate a regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72532#M21006</link>
      <description>Source                      DF         Squares     Mean Square    F Value    Pr &amp;gt; F&lt;BR /&gt;
&lt;BR /&gt;
      Model                      103     364649.9615       3540.2909        .       .&lt;BR /&gt;
&lt;BR /&gt;
      Error                        0          0.0000           .&lt;BR /&gt;
&lt;BR /&gt;
      Corrected Total            103     364649.9615&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
                       R-Square     Coeff Var      Root MSE    score Mean&lt;BR /&gt;
&lt;BR /&gt;
                       1.000000           .               .      81.98077&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      Source                      DF       Type I SS     Mean Square    F Value    Pr &amp;gt; F&lt;BR /&gt;
&lt;BR /&gt;
      gdp                         93     328054.4615       3527.4673        .       .&lt;BR /&gt;
      pop                         10      36595.5000       3659.5500        .       .&lt;BR /&gt;
      gdp*pop                      0          0.0000           .            .       .&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
      Source                      DF     Type III SS     Mean Square    F Value    Pr &amp;gt; F&lt;BR /&gt;
&lt;BR /&gt;
      gdp                          3       657.00000       219.00000        .       .&lt;BR /&gt;
      pop                         10     36595.50000      3659.55000        .       .&lt;BR /&gt;
      gdp*pop                      0         0.00000          .             .       .&lt;BR /&gt;
&lt;BR /&gt;
See, the F value and P-value is ...&lt;BR /&gt;
Thank you, Paige.</description>
      <pubDate>Thu, 16 Sep 2010 16:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72532#M21006</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-16T16:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to estimate a regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72533#M21007</link>
      <description>You have an overdetermined model. In other words, too many terms in the model for the number of data points available, which results in all of these issues, 0 degrees of freedom for error, no P-values, no F-values and 100% r-squared.&lt;BR /&gt;
&lt;BR /&gt;
I don't know what GDP is to you, but are there really 93 discrete levels (and is it a categorical variable)? Same question applies to POP.</description>
      <pubDate>Thu, 16 Sep 2010 16:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72533#M21007</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2010-09-16T16:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to estimate a regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72534#M21008</link>
      <description>Hi, Paige&lt;BR /&gt;
My GDP is not a categorical variable, it can be quantified.&lt;BR /&gt;
My goal is to estimate a regression model, with four variables, A as the dependent variable, B, C and D as the three independent variables...&lt;BR /&gt;
I feel like confused, do I need to do ANOVA for each independent variable? Or can I just do proc reg? I see the resulf from proc reg, I can directly get a model(equality) with 3 coefficients and an error... &lt;BR /&gt;
As a professional SAS programmer, what will you do when you are asked to estimate a regression model?&lt;BR /&gt;
Thank you.</description>
      <pubDate>Thu, 16 Sep 2010 16:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72534#M21008</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-16T16:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to estimate a regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72535#M21009</link>
      <description>Make sure that if a variable is not a categorical variable that it is not in the class statement in proc reg.  That could be your problem.</description>
      <pubDate>Thu, 16 Sep 2010 17:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72535#M21009</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2010-09-16T17:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to estimate a regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72536#M21010</link>
      <description>These variables should not be in the CLASS statement in PROC GLM. Then they will be treated as continuous and your degrees of freedom problem should go away.</description>
      <pubDate>Thu, 16 Sep 2010 17:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72536#M21010</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2010-09-16T17:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to estimate a regression model</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72537#M21011</link>
      <description>I FIXED IT.&lt;BR /&gt;
Thank you very much! Paige!</description>
      <pubDate>Mon, 20 Sep 2010 18:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-estimate-a-regression-model/m-p/72537#M21011</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-20T18:39:03Z</dc:date>
    </item>
  </channel>
</rss>

