<?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: Covariance of Coefficients in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411507#M21560</link>
    <description>&lt;P&gt;The TEST statement uses an F statistic, which is the square of the t statistic that is produced by the ESTIMATE statement. The p-value for the F test&amp;nbsp;is the same as the p-value for the t test. For example, the following statements display the test in two different ways.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=sashelp.class plots=none;
model weight = height age;
test height + age = 0;
ods select TestAnova;
quit;

proc glm data=sashelp.class plots=none;
model weight = height age;
estimate "height+age" height 1 age 1;
ods select Estimates;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The F statistic in the TestAnova table is the square of the t statistic in the Estimates table (up to rounding). The p-values are equal.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 12:50:33 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-11-08T12:50:33Z</dc:date>
    <item>
      <title>Covariance of Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/409714#M21385</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;ֲ&amp;nbsp;I wrote the following regression code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glm data= reg_roa ;&lt;/P&gt;&lt;P&gt;absorb gvkey01 ;class year;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model ROA= T DM DM_X&lt;/P&gt;&lt;P&gt;/noint solution;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;/*&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to receive the covariance of ֲ&amp;nbsp;the coefficients ֲ of T and DM_X (this covariance will be used in order to test if the sum of coefficients of T and DM_X equal to zero).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you know what I have to add to my code in order to receive the covariance?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 06:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/409714#M21385</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2017-11-02T06:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance of Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/409807#M21386</link>
      <description>&lt;P&gt;You can &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_glm_details25.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;use the ESTIMATE statement&lt;/A&gt; to test whether the sum of the coefficients is equal to zero. For your model, the statement would look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;estimate 'T+DM_X'  T 1 DM_X 1;  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/409807#M21386</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-02T12:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance of Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/410041#M21422</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;Thank&amp;nbsp; you very much for your response,&amp;nbsp; it was helpful.&lt;/P&gt;&lt;P&gt;however, do you know how to&amp;nbsp;get the &lt;EM&gt;covariance&lt;/EM&gt; of the two coefficients in my code? (I want to compute the t statistic by myself).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 23:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/410041#M21422</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2017-11-02T23:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance of Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/410211#M21430</link>
      <description>&lt;P&gt;I don't know if you can do that when you use an ABSORB statement.&amp;nbsp; If you have only continuous explanatory variables you can use PROC REG and the COVB option on the MODEL statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data= reg_roa ;
model ROA= T DM DM_X /noint COVB;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have CLASS variables, you can compute the covariance matrix of the estimates for the nonreference levels of the DUMMY variables. For example,&amp;nbsp; PROC GENMOD gives a 3x3 covariance matrix for the following model:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=sashelp.class plots=none;
class sex;
model weight = sex height / covb;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However, using the ABSORB statement is akin to including a CLASS variable (with many levels) in the model, but it does not include the columns of the dummy variables in the design matrix. (The documentation is somewhat vague on what&amp;nbsp;computation is actually performed.)&amp;nbsp; Thus I don't think you can get the&amp;nbsp;covariance of the betas when you use the ABSORB statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 18:33:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/410211#M21430</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-11-18T18:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance of Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/410321#M21440</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed the COVB is not working in my code (with ABSORB).&lt;/P&gt;&lt;P&gt;I will just use the t test&amp;nbsp; of SAS as you recommend before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 16:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/410321#M21440</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2017-11-03T16:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance of Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411447#M21557</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to perform the same estimate procedure your recommend but in other type of regression (Fama MacBeth regression), which look like that :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC REG DATA=reg_roa  outest=reg_roa_1 noprint outseb;
 MODEL ROA= T DM  DM_X; 
  by gvkey01 ;
 RUN;QUIT;


proc means data=reg_roa_1 n mean std t probt; where _TYPE_ = 'PARMS'; run;*/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;this procedure run&amp;nbsp; a regression for each firm (gvkey01) separately , and than average the coefficients of all the regressions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to add the estimate procedure with no success. maybe I haven't add it properly.&lt;/P&gt;&lt;P&gt;do you know how can I perform the same t test (to verify that the sum of the coefficient of T and DM_X not equal zero) in this regression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 08:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411447#M21557</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2017-11-08T08:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance of Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411464#M21558</link>
      <description>&lt;P&gt;You can switch to PROC GLM and use the ESTIMATE statement, or you can use &lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_reg_syntax20.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;the TEST statement in PROC REG&lt;/A&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;TEST&amp;nbsp; T+DM_X = 0;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 10:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411464#M21558</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-08T10:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance of Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411482#M21559</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did that, and although the log haven't indicate an error, the results do not include the t test. maybe I should add to&amp;nbsp; the "proc mean data" line this t test as well?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 11:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411482#M21559</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2017-11-08T11:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance of Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411507#M21560</link>
      <description>&lt;P&gt;The TEST statement uses an F statistic, which is the square of the t statistic that is produced by the ESTIMATE statement. The p-value for the F test&amp;nbsp;is the same as the p-value for the t test. For example, the following statements display the test in two different ways.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=sashelp.class plots=none;
model weight = height age;
test height + age = 0;
ods select TestAnova;
quit;

proc glm data=sashelp.class plots=none;
model weight = height age;
estimate "height+age" height 1 age 1;
ods select Estimates;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The F statistic in the TestAnova table is the square of the t statistic in the Estimates table (up to rounding). The p-values are equal.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 12:50:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411507#M21560</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-08T12:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Covariance of Coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411524#M21563</link>
      <description>&lt;P&gt;I did that but receive no results.. probably because this is not a "regular regression" but a method in which the regression is run for each firm separately&amp;nbsp; and each firm have its own coefficients. so maybe it is not possible to performance t test or F test for the sum of coefficients.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you any way for your explanations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Lior&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 13:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Covariance-of-Coefficients/m-p/411524#M21563</guid>
      <dc:creator>lioradam</dc:creator>
      <dc:date>2017-11-08T13:52:50Z</dc:date>
    </item>
  </channel>
</rss>

