<?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: Use of proc reg to regress a constant (Event Study with Constant Mean Return Model) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421906#M22202</link>
    <description>&lt;P&gt;Yes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=esper /* vardef=n */ noprint;
by firm;
var ret;
output out=mv(drop=_type_ _freq_) mean=mu var=varar_est;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;uncomment vardef=n if you want to match your procedure above exactly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2017 05:03:21 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2017-12-18T05:03:21Z</dc:date>
    <item>
      <title>Use of proc reg to regress a constant (Event Study with Constant Mean Return Model)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421797#M22189</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing an event study based on the constant mean return model and I'm stuck with regressing the model parameters.&lt;/P&gt;&lt;P align="left"&gt;The constant mean return model assumes that expected asset returns can differ by company, but are constant over time. The constant mean return model is:&lt;/P&gt;&lt;P align="left"&gt;&lt;IMG src="https://eventstudymetrics.com/wp-content/ql-cache/quicklatex.com-f8d4794a6cd34abff7db0b47a2534940_l3.png" alt="R_{i,\tau}=\mu_{i}+\epsilon_{i,\tau} " title="Rendered by QuickLaTeX.com" height="18" width="122" border="0" /&gt;&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;where&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;IMG src="https://eventstudymetrics.com/wp-content/ql-cache/quicklatex.com-90941ebe9df6ce0a6509b5de850d16b7_l3.png" alt=" \hat{\mu_{i}}=\frac{1}M_i \sum_{i=T_{0+1}}^{T_1} R_{i,\tau} " title="Rendered by QuickLaTeX.com" height="28" width="173" border="0" /&gt;= the average of the estimation window returns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the code to estimate the parameters if the market model was used, but i am stuck on changing it. The market model is based on the assumption of a constant and linear relation between individual asset returns and the return of a market index:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://eventstudymetrics.com/wp-content/ql-cache/quicklatex.com-0bb57348a473db533b5f73519d50a563_l3.png" alt=" R_{i,\tau}=\alpha_i+\beta_i R_{M,\tau}+\epsilon_{i,\tau} " title="Rendered by QuickLaTeX.com" height="18" width="204" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code for the market model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc reg data=estper outtest=mmparam;&lt;/P&gt;&lt;P&gt;by firm;&lt;/P&gt;&lt;P&gt;model ret = mrktret;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem with the standard regression procedure for the constant mean return model is now that I technically have alpha = 0 and beta = 1 fixed but i don't know how to this. I need to do a regression because I need&amp;nbsp; the standard error for testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd greatly appreciate it if anybody could help me with this! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2017 20:45:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421797#M22189</guid>
      <dc:creator>Annalena</dc:creator>
      <dc:date>2017-12-16T20:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use of proc reg to regress a constant (Event Study with Constant Mean Return Model)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421798#M22190</link>
      <description>&lt;P&gt;Have you tried the restrict statement?&amp;nbsp; Sounds like it does exactly what you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=sashelp.class;
  model weight = height;
  restrict intercept=0;
  restrict height=1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Dec 2017 21:16:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421798#M22190</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-12-16T21:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use of proc reg to regress a constant (Event Study with Constant Mean Return Model)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421802#M22191</link>
      <description>&lt;P&gt;How about:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=estper;
class firm;
model ret = firm;
lsmeans firm;
run; quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Dec 2017 21:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421802#M22191</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-12-16T21:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use of proc reg to regress a constant (Event Study with Constant Mean Return Model)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421843#M22193</link>
      <description>&lt;P&gt;Both your solutions didn't completely do what I need. I can't use GLM because it's not recommended by the theoretical foundations I am using in my thesis. This is the solution I found now:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Computing the constant mean return model parameters in estimation period*/

PROC MEANS data = estper MEAN NOPRINT;
VAR ret;
BY Firm ;
OUTPUT OUT= cmparameter(drop=_type_ _freq_)
MEAN(ret)=mu;
RUN; QUIT;

/*Computing of AR and its var in estimation period*/

Data AR;
	merge estper cmparameter;
	by firm;
	ar = ret - mu;
Run;Quit;

Proc Means data=AR var noprint;
	by firm;
	output out = AR (drop=_type_ _freq_)
	var(ar)=varar_est;
Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I guess there probably is a shorter way to do this.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2017 15:09:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421843#M22193</guid>
      <dc:creator>Annalena</dc:creator>
      <dc:date>2017-12-17T15:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use of proc reg to regress a constant (Event Study with Constant Mean Return Model)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421906#M22202</link>
      <description>&lt;P&gt;Yes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=esper /* vardef=n */ noprint;
by firm;
var ret;
output out=mv(drop=_type_ _freq_) mean=mu var=varar_est;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;uncomment vardef=n if you want to match your procedure above exactly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 05:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Use-of-proc-reg-to-regress-a-constant-Event-Study-with-Constant/m-p/421906#M22202</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-12-18T05:03:21Z</dc:date>
    </item>
  </channel>
</rss>

