<?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: How to analyze balanced and unbalanced panel data using SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-analyze-balanced-and-unbalanced-panel-data-using-SAS/m-p/726830#M35258</link>
    <description>&lt;P&gt;First, since your response is binary, you should specify DIST=BINARY or BINOMIAL in the MODEL statement in GLIMMIX. However, there are many ways to analyze repeated measures/panel data like this. The random effects model is one way. Another is the Generalized Estimating Equations (GEE) model, available in PROC GEE or PROC GENMOD. There is also the conditional logistic model available in PROC LOGISTIC with the STRATA statement. See &lt;A href="http://support.sas.com/kb/22871" target="_self"&gt;this note&lt;/A&gt; regarding types of logistic models.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Mar 2021 16:53:49 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2021-03-16T16:53:49Z</dc:date>
    <item>
      <title>How to analyze balanced and unbalanced panel data using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-analyze-balanced-and-unbalanced-panel-data-using-SAS/m-p/726818#M35257</link>
      <description>&lt;P&gt;I have panel data and I ran the below SAS code to get the coefficients.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GLIMMIX DATA=data1 ;
CLASS pid year;
MODEL employed(event='Yes')= age / SOLUTION ;
RANDOM INTERCEPT/ SUBJECT = pid ;
RUN;

PROC PANEL DATA=data1;
MODEL employed = age /RANone ;
ID pid year;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried doing a similar thing using Stata as below but the results between SAS and Stata output are different.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;xtset pid year
xtlogit employed age&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;I am not sure which is the correct result? Also, do I need to add any&amp;nbsp;option when running similar code on unbalanced panel data?&lt;/P&gt;
&lt;P&gt;Balanced data panel example:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;pid&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;year&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;age&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;employed&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;2001&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;33&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;yes&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;2002&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;34&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;no&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;2003&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;35&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;yes&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;2&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;2001&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;23&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;yes&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;2&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;2002&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;24&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;yes&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;2&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;2003&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;25&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;yes&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/66630497/how-to-analyze-balanced-and-unbalanced-panel-data-using-sas" target="_self"&gt;Cross-posted&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 16:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-analyze-balanced-and-unbalanced-panel-data-using-SAS/m-p/726818#M35257</guid>
      <dc:creator>pablas29</dc:creator>
      <dc:date>2021-03-16T16:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to analyze balanced and unbalanced panel data using SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-analyze-balanced-and-unbalanced-panel-data-using-SAS/m-p/726830#M35258</link>
      <description>&lt;P&gt;First, since your response is binary, you should specify DIST=BINARY or BINOMIAL in the MODEL statement in GLIMMIX. However, there are many ways to analyze repeated measures/panel data like this. The random effects model is one way. Another is the Generalized Estimating Equations (GEE) model, available in PROC GEE or PROC GENMOD. There is also the conditional logistic model available in PROC LOGISTIC with the STRATA statement. See &lt;A href="http://support.sas.com/kb/22871" target="_self"&gt;this note&lt;/A&gt; regarding types of logistic models.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 16:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-analyze-balanced-and-unbalanced-panel-data-using-SAS/m-p/726830#M35258</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-03-16T16:53:49Z</dc:date>
    </item>
  </channel>
</rss>

