<?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: Wald test for proc glm in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/549186#M27412</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;One quick question regarding the same post. In proc glm, which statement performs the same function or gives the same results as "Slice" statement does in proc logistic i.e.&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;slice gender&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;type &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; sliceby&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;type&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2019 06:34:58 GMT</pubDate>
    <dc:creator>Saba1</dc:creator>
    <dc:date>2019-04-08T06:34:58Z</dc:date>
    <item>
      <title>Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/540713#M27110</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif;"&gt;&amp;nbsp;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please see the attached sample dataset.&amp;nbsp;&lt;SPAN style="font-family: 'Arial',sans-serif;"&gt; I have run the following regression model with time and firm fixed effects:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data= have;
absorb PERMNO;
class month;
model Buy = Female_Chairman Male_Chairman Female_Director Male_Director Female_ChiefOfficer Male_ChiefOfficer month / solution noint;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif;"&gt;PERMNO stands for firms. Buy is the dependent variable, which is equal to 1 when there is a Buy trade, and 0 otherwise. Female_Chairman is a product of female dummy and&amp;nbsp;executive type,&amp;nbsp;and so on.&amp;nbsp;Male_ChiefOfficer is the omitted category.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif;"&gt;Now I want to apply Wald test/F test to measure a significant difference between coefficients of&amp;nbsp;(Female_Chairman and Male_Chairman)&amp;nbsp;as well as the difference between coefficients of (Female_Director and Male_Director).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif;"&gt;Kindly help me which code should I use to&amp;nbsp;run&amp;nbsp;Wald test&amp;nbsp;in&amp;nbsp;proc&amp;nbsp;glm? Thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 22:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/540713#M27110</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-03-06T22:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/540731#M27112</link>
      <description>&lt;P&gt;Sorry. I am not expert about it . Post it at STAT forum, and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp; or&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; could give you a hand .&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 11:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/540731#M27112</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-03-06T11:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/540745#M27114</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;: thanks for your kind suggestion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 06 Mar 2019 12:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/540745#M27114</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-03-06T12:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/540753#M27116</link>
      <description>&lt;P&gt;It would be helpful if you post an example of your data.&amp;nbsp;It's not clear to me what values are represented by Chairman, Director, and ChiefOfficer. Your&amp;nbsp;model assumes that they are continuous variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I think your model can't include the terms&lt;/P&gt;
&lt;P&gt;Female*Chairman&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;Male*Chairman&lt;/P&gt;
&lt;P&gt;because&amp;nbsp;they are linearly dependent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 12:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/540753#M27116</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-03-06T12:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/540946#M27130</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;: I have attached a sample dataset. Kindly have a look. Thanks.</description>
      <pubDate>Wed, 06 Mar 2019 22:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/540946#M27130</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-03-06T22:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/541193#M27135</link>
      <description>&lt;P&gt;I should first say that you should not use PROC GLM if your response is binary. Tests will be invalid. A logistic model using PROC LOGISTIC might be an appropriate model instead. Since you want to fit a fixed effects model, the STRATA statement in PROC LOGISTIC is the thing to use instead of the ABSORB statement in PROC GLM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, instead of using coded dummy variables for gender and type, create Gender and Type variables with the appropriate levels. Then, if the goal is to compare the genders within each type, you can use a SLICE statement. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic;
strata permno;
class gender type month/param=glm;
model buy=gender|type month;
slice gender*type / sliceby=type;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Mar 2019 19:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/541193#M27135</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-03-07T19:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/541224#M27136</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;: Thanks for your guidance. I am using proc glm because I need to apply fixed effect for PERMNO (total number is 4000) and month, both. Would proc logistic do the trick?&lt;BR /&gt;The second half of your answer where you ask me to "create Gender and Type variables with the appropriate levels", do you mean that instead of having a product of dummy variables of Male and Female, and three executive types separately, I should rather create one Gender variable&amp;nbsp; (i.e. 0/1) and one Type variable? But then I have three executive types, how to allocate numbers to them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to the attached&amp;nbsp;sample dataset. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 21:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/541224#M27136</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-03-07T21:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/541437#M27154</link>
      <description>&lt;P&gt;This appears to be the same question as your "SAS "proc" for linear regression" post. PROC GEE is one way to deal with this. The conditional logistic model with the STRATA statement that I mentioned above is another. The STRATA statement does the same thing in concept as the ABSORB statement in GLM, but the model fitting algorithm is entirely different (maximum likelihood vs least squares).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of having separate dummy variables (each coded 0 or 1) for each gender, create a single Gender variable that has values "male" and "female" (or 0 and 1 if you want) and specify that in the CLASS and MODEL statements. Similarly for your Type levels. The CLASS statement creates the dummy variables for you internally. See &lt;A href="http://support.sas.com/kb/23137" target="_self"&gt;this note&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 15:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/541437#M27154</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-03-08T15:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/545567#M27289</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;: Thanks. In another post, I have mentioned the issue of difference in results for fixed effects when PERMNO is used in Class statement as compared to Strata Statement.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Suitable-quot-proc-quot-for-a-model-with-Dummy-dependent-and/m-p/542023#M27170" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Statistical-Procedures/Suitable-quot-proc-quot-for-a-model-with-Dummy-dependent-and/m-p/542023#M27170&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Secondly, for proc logistic regression (with Slice statement) if I include gender and type variables in the model, in addition to the mentioned interactions, then some of the Maximum Likelihood Estimates are missing. However, I get accurate results&amp;nbsp;by using the code below i.e.&amp;nbsp; if model consists of only interaction variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic;
class gender type/param=glm;
model buy=gender*type ;
slice gender*type / sliceby=type;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I will be thankful for your helpful response.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2019 04:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/545567#M27289</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-03-24T04:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/545817#M27295</link>
      <description>&lt;P&gt;With GLM parameterization, the model with main effects and interaction and the model with only the interaction are equivalent models. You can see this in the fact that the log likelihood values for the two models are the same as are predicted values under the two models. In the interaction-only model, the degrees of freedom for the omitted main effects are absorbed into the degrees of freedom for the interaction. So, both models are equally "accurate". Concerning missing values, this is always the case with GLM parameterization. An effect with k levels has k-1 degrees of freedom and therefore only k-1 parameters can be estimated. Under GLM parameterization an estimate is presented for all k levels, so a constraint is imposed in which the reference level is set to zero with zero degrees of freedom and its standard error is set to missing.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/545817#M27295</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-03-25T13:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/546009#M27300</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;: Thanks. It clarifies in detail.</description>
      <pubDate>Tue, 26 Mar 2019 02:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/546009#M27300</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-03-26T02:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/549186#M27412</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;One quick question regarding the same post. In proc glm, which statement performs the same function or gives the same results as "Slice" statement does in proc logistic i.e.&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;slice gender&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;type &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; sliceby&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;type&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 06:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/549186#M27412</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-04-08T06:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/549300#M27420</link>
      <description>&lt;P&gt;You can still use the SLICE statement, but in PROC PLM following your PROC GLM step. First, fit your model in PROC GLM and include a STORE statement to save the fitted model. Then run PROC PLM using the stored model and specifying the SLICE statement.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 15:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/549300#M27420</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-04-08T15:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Wald test for proc glm</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/549442#M27427</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;: Thanks a lot for this help and providing useful information.</description>
      <pubDate>Mon, 08 Apr 2019 23:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Wald-test-for-proc-glm/m-p/549442#M27427</guid>
      <dc:creator>Saba1</dc:creator>
      <dc:date>2019-04-08T23:03:16Z</dc:date>
    </item>
  </channel>
</rss>

