<?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 use two-way fixed effect model when there are three identifying variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161374#M299753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a panel dataset with three dimension: doctor, patient, and year.&amp;nbsp; I hope to include doctor and year fixed-effect in my regression.&amp;nbsp; I used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=have; by doctor year; run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-size: 12.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 12.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;panel&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: black; background: white;"&gt;=HAVE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: blue; background: white;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: black; background: white;"&gt; doctor year;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: blue; background: white;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: black; background: white;"&gt; y =&amp;nbsp; x1 x2 x3 x4 x5 x6 x7 / &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: blue; background: white;"&gt;fixtwo&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-size: 12.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC TSCSREG DATA=HAVE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ID doctor year;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MODEL y = x1 x2 x3 x4 x5 x6 x7 / fixtwo;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But all I get is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Data set is not sorted in ascending sequence with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; respect to time series ID.&amp;nbsp; The current time period has year=2002 and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the previous time period has year=2010 in cross section&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doctor=2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I resolve this problem?&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 05:27:52 GMT</pubDate>
    <dc:creator>caveman529</dc:creator>
    <dc:date>2014-02-04T05:27:52Z</dc:date>
    <item>
      <title>How to use two-way fixed effect model when there are three identifying variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161374#M299753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a panel dataset with three dimension: doctor, patient, and year.&amp;nbsp; I hope to include doctor and year fixed-effect in my regression.&amp;nbsp; I used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=have; by doctor year; run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-size: 12.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: navy; background: white; font-size: 12.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;panel&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: blue; background: white;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: black; background: white;"&gt;=HAVE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: blue; background: white;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: black; background: white;"&gt; doctor year;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: blue; background: white;"&gt;model&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: black; background: white;"&gt; y =&amp;nbsp; x1 x2 x3 x4 x5 x6 x7 / &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: blue; background: white;"&gt;fixtwo&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-size: 12.0pt; font-family: Consolas;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; font-family: Consolas; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC TSCSREG DATA=HAVE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ID doctor year;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MODEL y = x1 x2 x3 x4 x5 x6 x7 / fixtwo;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But all I get is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Data set is not sorted in ascending sequence with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; respect to time series ID.&amp;nbsp; The current time period has year=2002 and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the previous time period has year=2010 in cross section&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doctor=2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I resolve this problem?&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 05:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161374#M299753</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2014-02-04T05:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use two-way fixed effect model when there are three identifying variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161375#M299754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check that error says dataset is not sorted as per variables in ID statement. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort before this step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 13:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161375#M299754</guid>
      <dc:creator>DR_Majeti</dc:creator>
      <dc:date>2014-02-04T13:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use two-way fixed effect model when there are three identifying variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161376#M299755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After sorting :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=have; by doctor year; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it still reports errors...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 15:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161376#M299755</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2014-02-04T15:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use two-way fixed effect model when there are three identifying variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161377#M299756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you send me the sample data That i can try the output .. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 16:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161377#M299756</guid>
      <dc:creator>DR_Majeti</dc:creator>
      <dc:date>2014-02-04T16:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use two-way fixed effect model when there are three identifying variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161378#M299757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Majeti:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help on this!&amp;nbsp; I have attached the data file in zip.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 05:32:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161378#M299757</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2014-02-05T05:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use two-way fixed effect model when there are three identifying variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161379#M299758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also got the same error, but I could rectify when only there are no duplicates for the year value. (But i know that it is wrong)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing that I got another error: when there is missing values for any observation the model we are applying is not accepting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please the check the combination of ID statement. Sorry, i don't have any idea with these kind of analysis. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 06:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161379#M299758</guid>
      <dc:creator>DR_Majeti</dc:creator>
      <dc:date>2014-02-05T06:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use two-way fixed effect model when there are three identifying variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161380#M299759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 07:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-two-way-fixed-effect-model-when-there-are-three/m-p/161380#M299759</guid>
      <dc:creator>caveman529</dc:creator>
      <dc:date>2014-02-05T07:25:30Z</dc:date>
    </item>
  </channel>
</rss>

