<?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: Mutual Fund Regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438163#M23113</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 375px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18663iA5259F81629AD1A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;this is the result of not running by the "by statement" the t values look weird to me&lt;/P&gt;</description>
    <pubDate>Sat, 17 Feb 2018 15:06:30 GMT</pubDate>
    <dc:creator>Princeelvisa</dc:creator>
    <dc:date>2018-02-17T15:06:30Z</dc:date>
    <item>
      <title>Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/437982#M23096</link>
      <description>&lt;P&gt;Please I have 8631 unique mutual funds, as a result of their different risk exposure, I run regression per fund, outputting their parameter estimates, but at the end of the day, I want to have one estimate for all and a single t value.&lt;/P&gt;&lt;P&gt;But for the coefficients of these 8631 funds, I take an average of them to serve as a single coefficient (I'm not too sure if this is right). for the t values, it will be wrong to just use an average of all the t values of the 8631 funds. I need help to have to find just a single coefficient and t value for these 8631 funds, even though I am running the regression by fund. Thank you. attached is what I have..&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods noresults;
ods output parameterestimates=prince.coefew1;
proc reg data=prince.Allfund;
by CRSP_FUNDNO;
model MRETRF=mktrf smb hml umd;
run; 

data prince.betaestew;
set prince.Coefew1;
if variable = 'mktrf';
varerr=stderr**2;
rename estimate=betaestew;
keep CRSP_FUNDNO Variable Estimate StdErr varerr tvalue;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Feb 2018 14:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/437982#M23096</guid>
      <dc:creator>Princeelvisa</dc:creator>
      <dc:date>2018-02-16T14:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438010#M23097</link>
      <description>&lt;P&gt;That doesn't seem correct to me. Why not remove the BY statement and run that regression model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc reg data=prince.Allfund;

model MRETRF=mktrf smb hml umd;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to account for the different funds you could include that as a variable though it may not produce what you want.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 16:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438010#M23097</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-16T16:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438011#M23098</link>
      <description>&lt;P&gt;I cannot remove the by statement because, each fund has different risk exposure, then the need and correct way is to run by fund no.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 16:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438011#M23098</guid>
      <dc:creator>Princeelvisa</dc:creator>
      <dc:date>2018-02-16T16:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438014#M23099</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156387"&gt;@Princeelvisa&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I cannot remove the by statement because, each fund has different risk exposure, then the need and correct way is to run by fund no.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you'll get estimates for each fund, if each has its own risk exposure then why do you want an overall estimate?&amp;nbsp; The average of the estimates will not be the overall risk.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 16:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438014#M23099</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-16T16:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438016#M23100</link>
      <description>&lt;P&gt;I want the overall because I'm studying the overall, by the regression needs to be run by fund, before ending up in the overall. thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 16:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438016#M23100</guid>
      <dc:creator>Princeelvisa</dc:creator>
      <dc:date>2018-02-16T16:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438020#M23101</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156387"&gt;@Princeelvisa&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I want the overall because I'm studying the overall, by the regression needs to be run by fund, before ending up in the overall. thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Using a BY statement is not the way to get an overall regression. I'm not sure why you think a BY statement is needed here. Please explain in more detail.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 16:42:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438020#M23101</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-02-16T16:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438159#M23111</link>
      <description>&lt;P&gt;Thank so much, using a by statement I intend to run the regression by each fund to obtain their respective estimates in a new dataset, the by statement run the regression for individual fund as a result of each fund having different risk exposure therefore the need to use the by statement. I heard I use "loop'' to aid in running the regressions. By my major concern is, after keeping the estimates in a separate dataset, I fund the average of the parameter estimates to serve for the whole, but doing the same by averaging the t values to obtain a single number for the whole I thing will be inappropriate then how do I get a single t value for the whole after running the regression by each fund? Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 14:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438159#M23111</guid>
      <dc:creator>Princeelvisa</dc:creator>
      <dc:date>2018-02-17T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438160#M23112</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156387"&gt;@Princeelvisa&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank so much, using a by statement I intend to run the regression by each fund to obtain their respective estimates in a new dataset, the by statement run the regression for individual fund as a result of each fund having different risk exposure therefore the need to use the by statement. I heard I use "loop'' to aid in running the regressions. By my major concern is, after keeping the estimates in a separate dataset, I fund the average of the parameter estimates to serve for the whole, but doing the same by averaging the t values to obtain a single number for the whole I thing will be inappropriate then how do I get a single t value for the whole after running the regression by each fund? Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would not recommend this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The average of the slopes is not a way to get a good "overall" slope. Same thing applies to t-values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's no reason you can't do both -- run individual regressions with the BY statement to get estimates for each fund, and then run the regression without the BY statement to get the overall slope and t-values.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 14:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438160#M23112</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-02-17T14:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438163#M23113</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 375px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18663iA5259F81629AD1A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;this is the result of not running by the "by statement" the t values look weird to me&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 15:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438163#M23113</guid>
      <dc:creator>Princeelvisa</dc:creator>
      <dc:date>2018-02-17T15:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438165#M23114</link>
      <description>&lt;P&gt;Weird? In what way? State what is weird about it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lots of people have used SAS PROC REG for &lt;STRONG&gt;decades&lt;/STRONG&gt;, and I am not aware of any previous claims of incorrect t-value being computed by PROC REG.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 15:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438165#M23114</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-02-17T15:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438189#M23116</link>
      <description>&lt;P&gt;The high value of t for the mktrf factor (which I presume is overall market-return minus risk-free-return, probably determined as sp500 return minus T-bill return) when you pool all the mutual funds simply&amp;nbsp;says that the association of the "average" mutual fund is undeniably associated with mktrf.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the parameter value (.95....) says that the class of portfolios known as mutual funds track the market very nearly on a 1:1 basis.&amp;nbsp; What is surprising about either of these numbers?&amp;nbsp; If effectively states that the risk premium for mutual funds is related to the risk premium for the overall market.&amp;nbsp; Presumably your sample of mutual funds are mostly invested in offerings in the self-same market.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2018 20:14:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438189#M23116</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-02-17T20:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: Mutual Fund Regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438197#M23117</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/156387"&gt;@Princeelvisa&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 375px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18663iA5259F81629AD1A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;this is the result of not running by the "by statement" the t values look weird to me&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you standardize your variables before regression?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, one possibilty. Cluster your data with respect to the mutual funds and reduce your dimensionality of the stocks to clusters, so you reduce the 8631 factors to say 10 or 20 and then use that as a factor in your analysis. I'm also assuming there's some time component to this data so you may need to be working with time series regression models. Otherwise, if you have one point for each mutual fund you definitely cannot use the BY statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your model would end up as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=stocks;
class cluster;
model dependent = cluster mktrf smb hmm umd stkmv stkmvew;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Feb 2018 21:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mutual-Fund-Regression/m-p/438197#M23117</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-17T21:25:52Z</dc:date>
    </item>
  </channel>
</rss>

