<?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: proc reg stdp and stdr output by group in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/proc-reg-stdp-and-stdr-output-by-group/m-p/577334#M13187</link>
    <description>&lt;P&gt;The statistics in your output data set are observation-wise statistics, which means you get one for each boservation.&lt;/P&gt;
&lt;P&gt;Perhaps you prefer to output model statistics, such as the SEB (&lt;SPAN&gt;standard errors of the parameter estimates) and the PRESS statistic? If so, look at the doc for the PROC REG statement and use the OUTEST= option, as follows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data stocks;
set sashelp.stocks(rename =(Stock=permno));
fyear = year(Date);
run;

proc sort data=stocks;
by permno fyear;
run;

proc reg data=stocks noprint outest=Est OUTSEB PRESS;
by permno fyear;
model Close = Open;
quit;
 
proc print data=Est(obs=10); run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Jul 2019 12:41:28 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-07-29T12:41:28Z</dc:date>
    <item>
      <title>proc reg stdp and stdr output by group</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-reg-stdp-and-stdr-output-by-group/m-p/577291#M13185</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I have a dataset that has around 200-250 daily stock returns data for one firm (permno) - one year (fiscal year) pair.&lt;/P&gt;&lt;P&gt;I'm trying to get the standard error of the predicted value (stdp) &amp;amp; the standard error of the residuals (stdr) from the regression for each firm-year pair.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After sorting my dataset, I'm trying to use the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=risk3_1;

&amp;nbsp; &amp;nbsp; by permno fyear;

&amp;nbsp; &amp;nbsp; model&amp;nbsp; exret=mktrf;

&amp;nbsp; &amp;nbsp; output out=est stdp=stdp stdr=stdr;

quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This clearly does not give me the desired output. Also, it just churns out 'stdp' and 'stdr' for each day (It's too many!!).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 04:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-reg-stdp-and-stdr-output-by-group/m-p/577291#M13185</guid>
      <dc:creator>Ji-Hoon</dc:creator>
      <dc:date>2019-07-29T04:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg stdp and stdr output by group</title>
      <link>https://communities.sas.com/t5/New-SAS-User/proc-reg-stdp-and-stdr-output-by-group/m-p/577334#M13187</link>
      <description>&lt;P&gt;The statistics in your output data set are observation-wise statistics, which means you get one for each boservation.&lt;/P&gt;
&lt;P&gt;Perhaps you prefer to output model statistics, such as the SEB (&lt;SPAN&gt;standard errors of the parameter estimates) and the PRESS statistic? If so, look at the doc for the PROC REG statement and use the OUTEST= option, as follows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data stocks;
set sashelp.stocks(rename =(Stock=permno));
fyear = year(Date);
run;

proc sort data=stocks;
by permno fyear;
run;

proc reg data=stocks noprint outest=Est OUTSEB PRESS;
by permno fyear;
model Close = Open;
quit;
 
proc print data=Est(obs=10); run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jul 2019 12:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/proc-reg-stdp-and-stdr-output-by-group/m-p/577334#M13187</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-07-29T12:41:28Z</dc:date>
    </item>
  </channel>
</rss>

