<?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 How to prepare the data for a proc panel pooled regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-prepare-the-data-for-a-proc-panel-pooled-regression/m-p/304958#M16190</link>
    <description>&lt;P&gt;update: As Ksharp&amp;nbsp;suggested, I reposted this question in the forecasting forum:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-prepare-data-for-a-proc-panel-pooled-regression/m-p/305053" target="_blank"&gt;https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-prepare-data-for-a-proc-panel-pooled-regression/m-p/305053&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to run a pooled regression for a sample. here is the code that I have right now:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have; &lt;BR /&gt; input fundid time flow flow_lag return; &lt;BR /&gt; datalines;&lt;BR /&gt; 10001 1 10 . .01&lt;BR /&gt; 10001 2 12 10 -.03&lt;BR /&gt; 10001 3 -10 12 .04&lt;BR /&gt; 10002 1 61 . .03&lt;BR /&gt; 10002 2 36 61 .04&lt;BR /&gt; 10002 3 10 36 0.01&lt;BR /&gt; ; &lt;BR /&gt;run;&lt;BR /&gt;proc panel data = have;&lt;BR /&gt; id fundid time;&lt;BR /&gt; model flow = return flow_lag / pooled;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, I have lots of funds and lots of time periods. But I am just showing 2 funds and 3 time periods to understand better how the proc panel works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the above regression, I get the error:&lt;/P&gt;
&lt;PRE&gt;There is only one cross section or time series observation. Computations will be terminated.
&lt;/PRE&gt;
&lt;P&gt;I get this message even when I run on the whole sample, which I know has lots of cross section and time series. As far as I understand, I have both multiple cross sections (two fundids) and multiple time series (three time ids). &amp;nbsp;So I think there should be something about pooled regression that I do not get at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are my two questions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;How should I arrange my data for the proc panel&amp;nbsp;so that I do not face the above error?&lt;/LI&gt;
&lt;LI&gt;Is my time id correct? or should it be necessarily a variable with time informat?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If there is any reference that can help me, I would appreciate it if you mention it as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks a lot,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2016 12:02:01 GMT</pubDate>
    <dc:creator>Shayan2012</dc:creator>
    <dc:date>2016-10-17T12:02:01Z</dc:date>
    <item>
      <title>How to prepare the data for a proc panel pooled regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-prepare-the-data-for-a-proc-panel-pooled-regression/m-p/304958#M16190</link>
      <description>&lt;P&gt;update: As Ksharp&amp;nbsp;suggested, I reposted this question in the forecasting forum:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-prepare-data-for-a-proc-panel-pooled-regression/m-p/305053" target="_blank"&gt;https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/How-to-prepare-data-for-a-proc-panel-pooled-regression/m-p/305053&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to run a pooled regression for a sample. here is the code that I have right now:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data have; &lt;BR /&gt; input fundid time flow flow_lag return; &lt;BR /&gt; datalines;&lt;BR /&gt; 10001 1 10 . .01&lt;BR /&gt; 10001 2 12 10 -.03&lt;BR /&gt; 10001 3 -10 12 .04&lt;BR /&gt; 10002 1 61 . .03&lt;BR /&gt; 10002 2 36 61 .04&lt;BR /&gt; 10002 3 10 36 0.01&lt;BR /&gt; ; &lt;BR /&gt;run;&lt;BR /&gt;proc panel data = have;&lt;BR /&gt; id fundid time;&lt;BR /&gt; model flow = return flow_lag / pooled;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, I have lots of funds and lots of time periods. But I am just showing 2 funds and 3 time periods to understand better how the proc panel works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the above regression, I get the error:&lt;/P&gt;
&lt;PRE&gt;There is only one cross section or time series observation. Computations will be terminated.
&lt;/PRE&gt;
&lt;P&gt;I get this message even when I run on the whole sample, which I know has lots of cross section and time series. As far as I understand, I have both multiple cross sections (two fundids) and multiple time series (three time ids). &amp;nbsp;So I think there should be something about pooled regression that I do not get at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are my two questions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;How should I arrange my data for the proc panel&amp;nbsp;so that I do not face the above error?&lt;/LI&gt;
&lt;LI&gt;Is my time id correct? or should it be necessarily a variable with time informat?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If there is any reference that can help me, I would appreciate it if you mention it as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks a lot,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 12:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-prepare-the-data-for-a-proc-panel-pooled-regression/m-p/304958#M16190</guid>
      <dc:creator>Shayan2012</dc:creator>
      <dc:date>2016-10-17T12:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to preapare the data for a proc panel pooled regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-prepare-the-data-for-a-proc-panel-pooled-regression/m-p/304961#M16191</link>
      <description>&lt;P&gt;It is about SAS/ETS, plz post it at Forecast forum.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 02:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-prepare-the-data-for-a-proc-panel-pooled-regression/m-p/304961#M16191</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-17T02:06:37Z</dc:date>
    </item>
  </channel>
</rss>

