<?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 event study in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/event-study/m-p/747062#M234445</link>
    <description>&lt;P&gt;Hello SAS pros,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question related to the event study I am doing.&amp;nbsp; In my sample I have many different ISIN codes and multiple events per ISIN (here I attach one ISIN code with 3 events as an example (su3.sas7bdat)&lt;SPAN style="font-family: inherit;"&gt;).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I have created variable "semaine" which indicates &lt;EM&gt;estimation&lt;/EM&gt; period (denoted by numbers 1-40) and &lt;EM&gt;observation&lt;/EM&gt; period (denoted by numbers 41-43).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I need to find a different intercept alpha and a different parameter beta using different estimation periods and I am not sure how to do it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I need to basically regress returns_perc&amp;nbsp;&lt;SPAN&gt;~ alpha^ + beta^mswrld_perc + e and to identify different alpha and beta values for each &lt;EM&gt;estimation&lt;/EM&gt; period.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;For this file I attach, I should have three different alphas and respectively three different betas. In my original sample, I have many more. I was wondering what would be the fastest automatic way to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 15:38:19 GMT</pubDate>
    <dc:creator>aiste</dc:creator>
    <dc:date>2021-06-10T15:38:19Z</dc:date>
    <item>
      <title>event study</title>
      <link>https://communities.sas.com/t5/SAS-Programming/event-study/m-p/747062#M234445</link>
      <description>&lt;P&gt;Hello SAS pros,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question related to the event study I am doing.&amp;nbsp; In my sample I have many different ISIN codes and multiple events per ISIN (here I attach one ISIN code with 3 events as an example (su3.sas7bdat)&lt;SPAN style="font-family: inherit;"&gt;).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I have created variable "semaine" which indicates &lt;EM&gt;estimation&lt;/EM&gt; period (denoted by numbers 1-40) and &lt;EM&gt;observation&lt;/EM&gt; period (denoted by numbers 41-43).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I need to find a different intercept alpha and a different parameter beta using different estimation periods and I am not sure how to do it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I need to basically regress returns_perc&amp;nbsp;&lt;SPAN&gt;~ alpha^ + beta^mswrld_perc + e and to identify different alpha and beta values for each &lt;EM&gt;estimation&lt;/EM&gt; period.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;For this file I attach, I should have three different alphas and respectively three different betas. In my original sample, I have many more. I was wondering what would be the fastest automatic way to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 15:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/event-study/m-p/747062#M234445</guid>
      <dc:creator>aiste</dc:creator>
      <dc:date>2021-06-10T15:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: event study</title>
      <link>https://communities.sas.com/t5/SAS-Programming/event-study/m-p/747070#M234448</link>
      <description>Please show the code you would use to estimate alpha and beta for a fixed estimation period.   Then we might be able to make useful suggestions on how to replicate that code for variable estimation periods.

Also what range of estimation periods do you intend to examine?</description>
      <pubDate>Thu, 10 Jun 2021 16:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/event-study/m-p/747070#M234448</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-06-10T16:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: event study</title>
      <link>https://communities.sas.com/t5/SAS-Programming/event-study/m-p/747284#M234519</link>
      <description>&lt;P&gt;I used this but it gives me the values based on the whole sample, not taking into account the value of my variable "semaine".&lt;/P&gt;&lt;P&gt;And I need it to perform only when "semaine" is equal from 1 to 40.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg data=dataset noprint OUTEST=interc;&lt;BR /&gt;model returns_perc=MSWRLD_perc/ clb;&lt;BR /&gt;output out=AR_main r=abret;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have any suggestions, I'd be happy to try them!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 06:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/event-study/m-p/747284#M234519</guid>
      <dc:creator>aiste</dc:creator>
      <dc:date>2021-06-11T06:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: event study</title>
      <link>https://communities.sas.com/t5/SAS-Programming/event-study/m-p/747721#M234741</link>
      <description>&lt;P&gt;If anyone faces the same problem - I have a solution. I created a value denoting the events --&amp;gt; an additional column saying event_nb=1,2,3... etc. E.g. event_nb=1 stays equal to 1 for the 43 weeks per event.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I did:&lt;/P&gt;&lt;P&gt;PROC REG NOPRINT DATA=dataset (WHERE=(semaine LE 40))&lt;BR /&gt;OUTEST=Betas;&lt;BR /&gt;MODEL returns_perc = mswrld_perc /SSE;&lt;BR /&gt;BY event_nb;&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe it'll be useful for someone else!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 09:44:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/event-study/m-p/747721#M234741</guid>
      <dc:creator>aiste</dc:creator>
      <dc:date>2021-06-14T09:44:39Z</dc:date>
    </item>
  </channel>
</rss>

