<?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: Why does only some of the table show in Estimated Regression Coefficients? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908343#M45086</link>
    <description>Not getting the table* I meant</description>
    <pubDate>Fri, 15 Dec 2023 18:57:51 GMT</pubDate>
    <dc:creator>ccherrub</dc:creator>
    <dc:date>2023-12-15T18:57:51Z</dc:date>
    <item>
      <title>Why does only some of the table show in Estimated Regression Coefficients?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908276#M45082</link>
      <description>&lt;P&gt;I'm trying to run a regresson model on minority enrolled university students through years 1994-2022 in different states. My code looks similar to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods output ParameterEstimates=PEforModel1 DataSummary=ObsModel1 FitStatistics=AdjsqModel1 Effects=OverallSigModel1; &lt;BR /&gt;Proc SurveyReg data=work.project3 plots=none;&lt;BR /&gt;class state year / Ref=first;&lt;BR /&gt;Model1: Model MisP = state*year/Solution Adjrsq;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With an output of&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas.png" style="width: 615px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91485i6DAAFFEB3D42A9D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas.png" alt="sas.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I feel as if I should create a DID varaible but I'm not sure how to do that when my data looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas2.png" style="width: 925px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91489iB5D1CB3252AEF84B/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas2.png" alt="sas2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone see where the problem may be? I could fix the input data anytime which I feel may also be the issue. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 17:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908276#M45082</guid>
      <dc:creator>ccherrub</dc:creator>
      <dc:date>2023-12-15T17:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why does only some of the table show in Estimated Regression Coefficients?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908293#M45083</link>
      <description>&lt;P&gt;I see that your response values are proportions. If these are proportions responding on some binary variable and you have the numerator and denominator counts making up the proportions, then you should be using a logistic model. If the data are not survey data (you aren't using the CLUSTER or STRATA statement), then you just need PROC LOGISTIC to fit the model. You can add an LSMEANS statement with the ILINK option to get the fitted proportions for the STATE*YEAR combinations. For example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=work.project3;
class state year / param=glm;
model num_events/total = state*year / noint;&lt;BR /&gt;lsmeans state*year / ilink;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the model fit is still a problem, as it appears to be in the results you showed, then you will probably need to merge together some levels of STATE and/or YEAR to remove any sparseness in the data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if your goal is to make difference in difference (DID) comparisons then you should review the "Generalized Linear Models with a Non-Identity Link" section of &lt;A href="http://support.sas.com/kb/61830" target="_self"&gt;this note&lt;/A&gt;.&amp;nbsp; As shown there, you can use Margins macro with appropriate contrasts data set to make the various DID comparisons since you have many levels of both STATE and YEAR.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 18:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908293#M45083</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-12-15T18:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why does only some of the table show in Estimated Regression Coefficients?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908341#M45085</link>
      <description>I'm getting a full table or results I want. It may be me interpreting your directions. However, I can't seem to find a way to regress my above varible on three different conditions fused together. I would like to see state and year to be regressed on. I did make a difference column with a lag function and subtracting that from the row however, I haven't found a way it's useful. &lt;BR /&gt;</description>
      <pubDate>Fri, 15 Dec 2023 18:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908341#M45085</guid>
      <dc:creator>ccherrub</dc:creator>
      <dc:date>2023-12-15T18:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why does only some of the table show in Estimated Regression Coefficients?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908343#M45086</link>
      <description>Not getting the table* I meant</description>
      <pubDate>Fri, 15 Dec 2023 18:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908343#M45086</guid>
      <dc:creator>ccherrub</dc:creator>
      <dc:date>2023-12-15T18:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why does only some of the table show in Estimated Regression Coefficients?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908401#M45087</link>
      <description>&lt;P&gt;It would help if you confirmed whether your response is a proportion of a binary variable and if you have the numerator and denominator counts., and then exactly what it is that you are trying to compute or estimate. It is not at all clear what "all 3 conditions" are and how that figures into the model.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 21:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-does-only-some-of-the-table-show-in-Estimated-Regression/m-p/908401#M45087</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-12-15T21:04:05Z</dc:date>
    </item>
  </channel>
</rss>

