<?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 panel in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Panel-data-weird-error-message/m-p/133772#M773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the Troubleshooting page under Details: PANEL PROCEDURE in the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Some guidelines need to be followed when you use PROC PANEL for analysis. For each cross section, PROC PANEL requires at least two time series observations with nonmissing values for all model variables. There should be at least two cross sections for each time point in the data. If these two conditions are not met, then an error message is printed in the log stating that there is only one cross section or time series observation and further computations will be terminated"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sparsity of your predictors, and the multitude of missing dates are what lead to this problem, I think. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving this discussion to the Forecasting forum would probably lead to some interesting comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Mar 2013 17:35:48 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2013-03-14T17:35:48Z</dc:date>
    <item>
      <title>Panel data- weird error message</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Panel-data-weird-error-message/m-p/133771#M772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running a very simply proc panel procedure.&lt;BR /&gt;proc panel data=combine2 plots=none;&lt;BR /&gt;id gvkey datadate;&lt;BR /&gt;random_full:model res1 = win loss fb bjk gs national fbwin bjkwin gswin fbloss bjkloss gsloss/ ranone hccme=1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;then:&lt;BR /&gt;ERROR: There is only one cross section or time series observation. Computations will be&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whole sample period is 7/1/1999-6/30/2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the sample is restricted to 1/1/2002-6/30/2011, it works.&lt;/P&gt;&lt;P&gt;So the problem is 7/1/1999-12/31/2011. I'm attaching the data, what can possibly go wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 15:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Panel-data-weird-error-message/m-p/133771#M772</guid>
      <dc:creator>econfkw</dc:creator>
      <dc:date>2013-03-14T15:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc panel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Panel-data-weird-error-message/m-p/133772#M773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the Troubleshooting page under Details: PANEL PROCEDURE in the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Some guidelines need to be followed when you use PROC PANEL for analysis. For each cross section, PROC PANEL requires at least two time series observations with nonmissing values for all model variables. There should be at least two cross sections for each time point in the data. If these two conditions are not met, then an error message is printed in the log stating that there is only one cross section or time series observation and further computations will be terminated"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sparsity of your predictors, and the multitude of missing dates are what lead to this problem, I think. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving this discussion to the Forecasting forum would probably lead to some interesting comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 17:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Panel-data-weird-error-message/m-p/133772#M773</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-03-14T17:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Panel data- weird error message</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Panel-data-weird-error-message/m-p/310547#M2007</link>
      <description>&lt;P&gt;I also experienced the same problem, but my problem was resolved by running the following code before proc panel program:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*Eliminate missing variables;&lt;/P&gt;
&lt;P&gt;DATA WANT;&lt;BR /&gt;SET combine2;&lt;/P&gt;
&lt;P&gt;IF &lt;SPAN&gt;win &lt;/SPAN&gt;&amp;nbsp;= . THEN DELETE;&lt;/P&gt;
&lt;P&gt;IF loss &amp;nbsp;= . THEN DELETE;&lt;/P&gt;
&lt;P&gt;IF fb &amp;nbsp;= . THEN DELETE;&lt;BR /&gt;IF bjk &amp;nbsp;= . THEN DELETE;&lt;BR /&gt;IF gs &amp;nbsp;= . THEN DELETE;&lt;BR /&gt;IF national &amp;nbsp;= . THEN DELETE;&lt;BR /&gt;IF fbwin &amp;nbsp;= . THEN DELETE;&lt;/P&gt;
&lt;P&gt;bjkwin&lt;SPAN&gt;= . THEN DELETE;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;gswin&lt;SPAN&gt;= . THEN DELETE;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;fbloss&lt;SPAN&gt;= . THEN DELETE;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;bjkloss&lt;SPAN&gt;= . THEN DELETE;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;gsloss&lt;SPAN&gt;= . THEN DELETE;&lt;/SPAN&gt;&lt;BR /&gt;IF GVKEY = . THEN DELETE;&lt;BR /&gt;IF datadate&amp;nbsp;= . THEN DELETE;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*Ensure each gvkey must have at least 2 observations;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt; create table want&amp;nbsp;as&lt;BR /&gt; select * from want&lt;BR /&gt; group by GVKEY having count(*)&amp;gt;= 2;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*sort the data according to gvkey and datadate;&lt;/P&gt;
&lt;P&gt;proc sort data=want;&lt;BR /&gt;by gvkey &lt;SPAN&gt;datadate&lt;/SPAN&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this codes are useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;MSPAK&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 01:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Panel-data-weird-error-message/m-p/310547#M2007</guid>
      <dc:creator>mspak</dc:creator>
      <dc:date>2016-11-10T01:09:56Z</dc:date>
    </item>
  </channel>
</rss>

