<?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: error proc panel : in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/835007#M4516</link>
    <description>&lt;P&gt;thank you for your answer !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i believe I really don't have&amp;nbsp;&lt;SPAN&gt;duplicate dates within the same cross-section.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when It is ordered by company name and date, the first lines of my table are these ones (where i don't see any duplicate) :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;datalines;&lt;/DIV&gt;&lt;DIV class=""&gt;017187 31JAN2014 60101010 AGELLAN COMMERCIAL REIT 7.7170 2014 -1.009485011&lt;/DIV&gt;&lt;DIV class=""&gt;017187 03FEB2014 60101010 AGELLAN COMMERCIAL REIT 7.8444 2014 -1.009485011&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;017187 11FEB2014 60101010 AGELLAN COMMERCIAL REIT 8.5922 2014 -1.009485011&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;017187 23JUL2014 60101010 AGELLAN COMMERCIAL REIT 8.6800 2014 -1.009485011&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;017187 24JUL2014 60101010 AGELLAN COMMERCIAL REIT 8.6790 2014 -1.009485011&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;and it still returns the error message :&amp;nbsp;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: The data set THESIS.DIVERSIFIED_RETURNS is not sorted in ascending sequence with respect to the time series ID. The current time period has date=31DEC2014 and the previous time period has date=31DEC2014 in cross section CONM=AGELLAN COMMERCIAL REIT.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;However, it would be really helpful if you could provide me with an example of proc timeseries, to try your solution&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;thank you !!&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 24 Sep 2022 12:57:55 GMT</pubDate>
    <dc:creator>Am_fr</dc:creator>
    <dc:date>2022-09-24T12:57:55Z</dc:date>
    <item>
      <title>error proc panel :</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/834834#M4512</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently working on daily returns of several different REITs and I have a problem when I run my panel regression, it keeps showing the same error message :&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;"&lt;FONT color="#FF0000"&gt;ERROR: The data set THESIS.DIVERSIFIED_RETURNS is not sorted in ascending sequence with respect to the time series ID. The current time period has date=31DEC2014 and the previous time period has date=31DEC2014 in cross-section CONM=AGELLAN COMMERCIAL REIT.&lt;/FONT&gt;"&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code :&lt;/P&gt;&lt;P&gt;proc sort data=thesis.diversified_returns out=thesis.diversified_returns;&lt;BR /&gt;by company date;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc panel data=thesis.diversified_returns;&lt;BR /&gt;id company date;&lt;BR /&gt;model log_return=log_growth_in_cases log_AT log_FFO log_CASSET log_MVASSET/&lt;BR /&gt;fixtwo;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is an overview of my database:&lt;/P&gt;&lt;DIV class=""&gt;datalines;&lt;/DIV&gt;&lt;DIV class=""&gt;31DEC2009 60101010 ONE LIBERTY PROPERTIES INC 9.1800 2010 -1.453636611 -2.679457736 0 6.012947135&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;31DEC2009 60101010 PS BUSINESS PARKS 49.1800 2010 -0.24792172 -2.016888923 0 7.3555273585&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;05JAN2010 60101010 ONE LIBERTY PROPERTIES INC 9.7900 2010 -1.453636611 -2.679457736 0 6.012947135&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;05JAN2010 60101010 PS BUSINESS PARKS 48.2900 2010 -0.24792172 -2.016888923 0 7.3555273585&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;06JAN2010 60101010 ONE LIBERTY PROPERTIES INC 10.0400 2010 -1.453636611 -2.679457736 0 6.012947135&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Thank you !&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Sep 2022 16:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/834834#M4512</guid>
      <dc:creator>Am_fr</dc:creator>
      <dc:date>2022-09-23T16:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: error proc panel : ERROR The data set is not sorted in ascending sequence</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/834836#M4513</link>
      <description>&lt;P&gt;From now on, please, when an ERROR appears in the log, show us the &lt;FONT color="#FF0000"&gt;ENTIRE&lt;/FONT&gt; log for that PROC or DATA step, not just a few lines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;The current time period has date=31DEC2014 and the previous time period has date=31DEC2014&lt;/PRE&gt;
&lt;P&gt;I'm not really a heavy user of PROC PANEL, but I don't think two observations with the exact same date are allowed.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 13:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/834836#M4513</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-23T13:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: error proc panel :</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/835002#M4514</link>
      <description>&lt;P&gt;Plz post it at Forecasting Forum:&lt;BR /&gt;PROC PANEL is under SAS/ETS&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/bd-p/forecasting_econometrics&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 10:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/835002#M4514</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-09-24T10:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: error proc panel :</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/835003#M4515</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have duplicate dates within the same cross-section.&lt;/P&gt;
&lt;P&gt;Might be a data quality problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, you can de-duplicate by taking the median (or whatever summary statistic) per cross-section (like company , firm, country , subject_id , ...) for the same dates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do the latter using :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;PROC TIMESERIES or&lt;/LI&gt;
&lt;LI&gt;PROC TIMEDATA (or&amp;nbsp;timeData cas action)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;It's pretty easy, but let us know if you need an example !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 10:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/835003#M4515</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-09-24T10:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: error proc panel :</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/835007#M4516</link>
      <description>&lt;P&gt;thank you for your answer !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i believe I really don't have&amp;nbsp;&lt;SPAN&gt;duplicate dates within the same cross-section.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when It is ordered by company name and date, the first lines of my table are these ones (where i don't see any duplicate) :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;datalines;&lt;/DIV&gt;&lt;DIV class=""&gt;017187 31JAN2014 60101010 AGELLAN COMMERCIAL REIT 7.7170 2014 -1.009485011&lt;/DIV&gt;&lt;DIV class=""&gt;017187 03FEB2014 60101010 AGELLAN COMMERCIAL REIT 7.8444 2014 -1.009485011&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;017187 11FEB2014 60101010 AGELLAN COMMERCIAL REIT 8.5922 2014 -1.009485011&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;017187 23JUL2014 60101010 AGELLAN COMMERCIAL REIT 8.6800 2014 -1.009485011&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;017187 24JUL2014 60101010 AGELLAN COMMERCIAL REIT 8.6790 2014 -1.009485011&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;and it still returns the error message :&amp;nbsp;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: The data set THESIS.DIVERSIFIED_RETURNS is not sorted in ascending sequence with respect to the time series ID. The current time period has date=31DEC2014 and the previous time period has date=31DEC2014 in cross section CONM=AGELLAN COMMERCIAL REIT.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;However, it would be really helpful if you could provide me with an example of proc timeseries, to try your solution&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;thank you !!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 24 Sep 2022 12:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/835007#M4516</guid>
      <dc:creator>Am_fr</dc:creator>
      <dc:date>2022-09-24T12:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: error proc panel :</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/835008#M4517</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/434685"&gt;@Am_fr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the code :&lt;/P&gt;
&lt;P&gt;( Remark that PROC TIMESERIES is making the timestamp equally spaced, i.e. it fills gaps (with missings when using setmissing=missing) )&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=work.have 
     /* no out=  needed if input and output datasets are the same */ ;
 by cross_section timestamp;
run;

proc timeseries data=work.have out=work.dseries;
   by cross_section;
   id timestamp interval=day
                accumulate=median
                setmiss=missing
             /* start='01jan1998'd */
             /* end  ='31dec2000'd */ ;
   var item1-item8;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If it works now, you might want to use another accumulation statistic.&lt;/P&gt;
&lt;P&gt;See here for your choices :&lt;/P&gt;
&lt;P&gt;SAS/ETS 15.2 User's Guide&lt;BR /&gt;The TIMESERIES Procedure&lt;BR /&gt;ID Statement&lt;BR /&gt;Look for the ACCUMULATE=option !&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_timeseries_syntax08.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_timeseries_syntax08.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 13:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/error-proc-panel/m-p/835008#M4517</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-09-24T13:23:21Z</dc:date>
    </item>
  </channel>
</rss>

