<?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 Panel regression error in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-error/m-p/567676#M27941</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a panel data with missing values. When I try to estimate a fixed or random effects regression, the proc panel procedure returns with an error like this: "there are missing values in the TS variable". So I can't make an estimation. Can you help me how to solve this problem? I'm using SAS OnDemand for Academics by the way.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2019 15:56:49 GMT</pubDate>
    <dc:creator>firatyilmaz</dc:creator>
    <dc:date>2019-06-20T15:56:49Z</dc:date>
    <item>
      <title>Panel regression error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-error/m-p/567676#M27941</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a panel data with missing values. When I try to estimate a fixed or random effects regression, the proc panel procedure returns with an error like this: "there are missing values in the TS variable". So I can't make an estimation. Can you help me how to solve this problem? I'm using SAS OnDemand for Academics by the way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 15:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-error/m-p/567676#M27941</guid>
      <dc:creator>firatyilmaz</dc:creator>
      <dc:date>2019-06-20T15:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Panel regression error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-error/m-p/568106#M27964</link>
      <description>&lt;P&gt;Can you remove the missing observations? Maybe something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC PANEL data=your.data(where=(TS~=.));&lt;/P&gt;&lt;P&gt;*...(your model code);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2019 04:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-error/m-p/568106#M27964</guid>
      <dc:creator>arthurcavila</dc:creator>
      <dc:date>2019-06-22T04:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Panel regression error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-error/m-p/568115#M27966</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer. I added the code you suggested to the end of the proc panel statement, but this time it returned with two errors: "Variable TS is not on file WORK.GAS" and "No data set open to look up variables". My data&amp;nbsp; actually an open access stata file(.dta) so I used the following code to import it to SAS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%web_drop_table(work.gas);&lt;BR /&gt;&lt;BR /&gt;filename gas "/home/u37951485/gasoline4.dta";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc import datafile=gas&lt;BR /&gt;     dbms=dta&lt;BR /&gt;     out=work.gas;&lt;BR /&gt;     run;&lt;BR /&gt;     &lt;BR /&gt;%web_open_table(work.gas);&lt;/PRE&gt;&lt;P&gt;My panel procedure is:&lt;/P&gt;&lt;PRE&gt;proc panel data=work.gas (here your suggested extension);&lt;BR /&gt;     id country year;&lt;BR /&gt;     model lgasconspc=lgasp co2int annual_temp /fixone;&lt;BR /&gt;     run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The interesting thing is that I can estimate the model with proc reg without any errors. İn Stata, I also can estimate the model even though it is an unbalanced panel without any problems. I have read on SAS support that proc panel procedure would simply ignore the misssing values and estimate the model. But it does not. What is the problem or what am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2019 09:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Panel-regression-error/m-p/568115#M27966</guid>
      <dc:creator>firatyilmaz</dc:creator>
      <dc:date>2019-06-22T09:38:45Z</dc:date>
    </item>
  </channel>
</rss>

