<?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 vs. proc glimmix in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285913#M15110</link>
    <description>&lt;P&gt;FOr normal distribution, the &lt;STRONG&gt;random i&lt;/STRONG&gt; statement is giving compound symmetry within subjects (i), since there is also a residual by default. All observation pairs within i have the same correlation. Just like in a RCBD. Of course, to get a structure to the correlation, other statements would be needed.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 17:45:13 GMT</pubDate>
    <dc:creator>lvm</dc:creator>
    <dc:date>2016-07-20T17:45:13Z</dc:date>
    <item>
      <title>proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285144#M15061</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS and I am having trouble figuring out the difference between&amp;nbsp;proc glimmix&amp;nbsp;and proc panel&amp;nbsp;in the context of&amp;nbsp;panel data analysis. I have an unbalanced panel (CUSTOMER_ID&amp;nbsp;+ TIME_PERIOD) and I want to capture&amp;nbsp;unobserved heterogeneity&amp;nbsp;at&amp;nbsp;customer-level, using a random effects model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX: I am specifcying a VC type covariance matrix between different customers. That is, I expect observations from the same customer to be correlated across time periods but not across different customers. All customers in addition have an idiosyncratic error component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GLIMMIX DATA=BK.DATA1;
CLASS VAR1 CUSTOMER_ID;
MODEL Y = VAR1 VAR2 VAR3 VAR1*VAR3
/LINK = IDENTITY DIST = NORMAL SOLUTION;
RANDOM INTERCEPT/ SUBJECT = CUSTOMER_ID TYPE= VC V;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC PANEL: For the same covariates as in the above&amp;nbsp;model, I am running in to trouble. For example, I do not get the Hausman test result and multicollinearity problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC PANEL DATA=BK.DATA1;
CLASS VAR1 ;
MODEL Y = VAR1 VAR2 VAR3 VAR1*VAR3
/RANONE VCOMP = FB;
ID CUSTOMER_ID TIME_PERIOD;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following questions:&lt;/P&gt;&lt;P&gt;1. What are&amp;nbsp;the differences in&amp;nbsp;the modeling assumptions between using proc glimmix and proc panel? Aren't they the same (as GLS/FGLS) for a linear model with a single random effect? If so, shouldn't they give identical estimates? I understand that proc glimmix uses GEE, but specifying normal distribution should be the same as GLS, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Is proc glimmix "better than" proc panel in some sense? Or do they both do very different things (in the case of&amp;nbsp;panel data) and may be, I am completely missing something here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would highly appreciate your comments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 01:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285144#M15061</guid>
      <dc:creator>BK2</dc:creator>
      <dc:date>2016-07-18T01:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285252#M15066</link>
      <description>&lt;P&gt;I want to start by saying that I do over 90% of my work in PROC GLIMMIX, so I would say I have a prejudice. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your PROC GLIMMIX code, I can't seem to identify which variable is your time variable. &amp;nbsp;That is critical to modeling what is going on--you will likely need another RANDOM statement in order to capture the within subject correlation over time. &amp;nbsp;When we have that in hand, I think I can come up with code to address your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 15:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285252#M15066</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-18T15:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285264#M15067</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response. I did not have any&amp;nbsp;random or fixed effects for the time variable, hence&amp;nbsp;did not include them in GLIMMIX. My model specification is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Y_ij =&amp;nbsp;B_0 + B_1 *VAR_ij + ...+ &lt;SPAN&gt;B_4 *&lt;/SPAN&gt;&lt;SPAN&gt;VAR1VAR3&lt;/SPAN&gt;&lt;SPAN&gt;_ij +&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;v_i + e_ij,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where v_i is the random effect for subject i and e_ij is the common error term.&amp;nbsp;PROC PANEL requires me to specify both cross-section and time period variables regardless, hence I had to include them&amp;nbsp;in that&amp;nbsp;code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I only have random effects for the subject, does it not automatically introduce correlation over time for the same subject? In the above specification, the error terms for a&amp;nbsp;customer across time periods are&amp;nbsp;correlated because of v_i terms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, can you please comment on how GLIMMIX differ from PANEL in terms of the above analysis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 15:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285264#M15067</guid>
      <dc:creator>BK2</dc:creator>
      <dc:date>2016-07-18T15:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285307#M15072</link>
      <description>&lt;P&gt;For GLIMMIX to model the within subject effects, you must specify a time period variable, and if you expect it to have a differential effect on the levels of the other variables, you must also include an interaction effect. &amp;nbsp;Given that, I think the following approximates what you trying to do:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GLIMMIX DATA=BK.DATA1;
CLASS VAR1 TIME CUSTOMER_ID;
MODEL Y = VAR1 VAR2 VAR3 VAR1*VAR3 TIME TIME*VAR1 TIME*VAR2 TIME*VAR3 TIME*VAR1*VAR3
/LINK = IDENTITY DIST = NORMAL SOLUTION;

RANDOM INTERCEPT/ SUBJECT = CUSTOMER_ID TYPE= VC V;
RANDOM TIME/SUBJECT = CUSTOMER_ID TYPE=AR(1);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This models an autoregressive error structure over time within each customer. &amp;nbsp;Other error structures may be more appropriate, depending on the data generating process and the spacing in time of the measurements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thus, cross-sectional comparisons can be done at each time interval, while the other effects can be roughly translated as "intercepts" when TIME=0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 17:40:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285307#M15072</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-18T17:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285379#M15077</link>
      <description>&lt;P&gt;In GLIMMIX or MIXED, you need a random or repeated statement to duplicate PROC PANEL. The subject effect is really there with PANEL (implicitly), whether you think it is there or not. This dated article may help you:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2007/170-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/170-2007.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 20:35:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285379#M15077</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2016-07-18T20:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285550#M15089</link>
      <description>&lt;P&gt;Steve, &amp;nbsp;the correlation I am trying to capture is that: the error terms across time periods for the same subject have the identical covariances (which arises from have subject-specific random effect). My understanding is that autoregressive structure captures decaying (decreasing as time between two periods increases) covariance in the idiosyncratic errors and not subject-specific random effects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given the above, do you think I would still need the CLASS TIME and RANDOM TIME &amp;nbsp;statements?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 16:02:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285550#M15089</guid>
      <dc:creator>BK2</dc:creator>
      <dc:date>2016-07-19T16:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285553#M15090</link>
      <description>&lt;P&gt;Ivm, thanks, that is definitely helpful. The following code (taken from that paper) implements two-random effects in PROC MIXED.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=two method=type3;
 class i t;
 model y = x1 x2 x3 /solution;
 random i t;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In my case I am only trying to model subject specific unobserved heterogeneity (i.e., one-way random effects). In which case do you think I still need to state "class t" and "random t"? This related to Steve's suggestion above. My understanding is that having a "t" terms introduces covariance across different subjects in the same period, which I am trying to avoid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 16:01:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285553#M15090</guid>
      <dc:creator>BK2</dc:creator>
      <dc:date>2016-07-19T16:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285577#M15093</link>
      <description>&lt;P&gt;A random i; term would give you compound symmetry for the different times within each subject (i). That means equal correlation. I think that is what you want.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 17:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285577#M15093</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2016-07-19T17:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285908#M15108</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm﻿&lt;/a&gt;, I think I want to disagree. &amp;nbsp;I think that ignoring the repeated nature, implemented by t in this example, is the same as throwing all of the measurements for an individual into one large bucket, such that a "panel"&amp;nbsp;inference would be impossible. &amp;nbsp;It would just be a one-way analysis. &amp;nbsp;Maybe I am missing something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 17:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285908#M15108</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-20T17:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285913#M15110</link>
      <description>&lt;P&gt;FOr normal distribution, the &lt;STRONG&gt;random i&lt;/STRONG&gt; statement is giving compound symmetry within subjects (i), since there is also a residual by default. All observation pairs within i have the same correlation. Just like in a RCBD. Of course, to get a structure to the correlation, other statements would be needed.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 17:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285913#M15110</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2016-07-20T17:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285921#M15112</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm﻿&lt;/a&gt;, that makes sense. &amp;nbsp;it just doesn't fit my preconceived notion of what panel data looks like, so I plead guilty to carrying my prejudices into the analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 17:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285921#M15112</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-07-20T17:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285925#M15113</link>
      <description>&lt;P&gt;I am not recommending this model, per se, just showing a model that could be used.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 18:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285925#M15113</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2016-07-20T18:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285966#M15116</link>
      <description>&lt;P&gt;I am getting very different outputs using&amp;nbsp;PROC GLIMMIX and PROC PANEL with the same panel data (although I thought the below two specifications are&amp;nbsp;statistically equivalent). I agree they are using different estimation techniques (PANEL uses FGLS and GLIMMIX uses GEE) but I think that is not the reason for the discrepency.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Data test;&lt;BR /&gt;Title 'sample_customer';&lt;BR /&gt;Input customer_id time_period dep_var1 dep_var2 ind_var1 ind_var2;&lt;BR /&gt;datalines;&lt;BR /&gt;1 1 1 12 10 .9&lt;BR /&gt;1 2 1 15 7 8.3&lt;BR /&gt;1 3 1 8.9 8 2.3&lt;BR /&gt;1 4 0 0 6 2&lt;BR /&gt;1 5 0 0 6 5&lt;BR /&gt;1 6 1 19 3 4&lt;BR /&gt;1 7 1 4 4 3&lt;BR /&gt;&lt;BR /&gt;2 1 1 12 10 5&lt;BR /&gt;2 2 0 0 7 3&lt;BR /&gt;2 3 0 0 8 3&lt;BR /&gt;2 4 0 0 6 2&lt;BR /&gt;&lt;BR /&gt;3 1 1 40 20 10&lt;BR /&gt;3 2 1 24 17 19&lt;BR /&gt;3 3 0 0 18 2.3&lt;BR /&gt;3 4 0 0 16 12&lt;BR /&gt;3 5 0 0 26 35&lt;BR /&gt;3 6 0 0 33 24&lt;BR /&gt;3 7 0 0 24 13&lt;BR /&gt;3 8 0 0 12 31&lt;BR /&gt;3 9 1 42 36 18;&lt;BR /&gt;&lt;BR /&gt;PROC GLIMMIX DATA=test;&lt;BR /&gt;CLASS CUSTOMER_ID dep_var1;&lt;BR /&gt;MODEL dep_var2 = ind_VAR1 ind_VAR2 dep_var1 &lt;BR /&gt;/LINK = IDENTITY DIST = NORMAL SOLUTION;&lt;BR /&gt;RANDOM INTERCEPT/ SUBJECT = CUSTOMER_ID TYPE= VC;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC PANEL DATA=test;&lt;BR /&gt;CLASS dep_var1;&lt;BR /&gt;MODEL dep_var2 = ind_VAR1 ind_VAR2 dep_var1 &lt;BR /&gt;/RANONE VCOMP = FB;&lt;BR /&gt;ID CUSTOMER_ID TIME_PERIOD;&lt;BR /&gt;RUN;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 21:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285966#M15116</guid>
      <dc:creator>BK2</dc:creator>
      <dc:date>2016-07-20T21:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285968#M15117</link>
      <description>&lt;P&gt;Actually, GLIMMIX uses REML (restricted ML) for normal data, such as yours, not GEE. It uses GEE when there is a Poisson or binomial and one properly sets up a residual structure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 20:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285968#M15117</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2016-07-20T20:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285975#M15119</link>
      <description>Ivm, I noticed your reply after I finished editing my post. Oops! Thanks for pointing out that the estimation technique is restricted ML.</description>
      <pubDate>Wed, 20 Jul 2016 21:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/285975#M15119</guid>
      <dc:creator>BK2</dc:creator>
      <dc:date>2016-07-20T21:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/286576#M15176</link>
      <description>&lt;P&gt;Ivm, I am running the following two procedures for random effects at customer level without autoregression. I was hoping to get similar results, but the&amp;nbsp;two procedures give me very different&amp;nbsp;results. Am I specifying something wrong in the procedures or are the two procedures&amp;nbsp;doing something different? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Data test;&lt;BR /&gt;Title 'sample_customer';&lt;BR /&gt;Input customer_id time_period dep_var1 dep_var2 ind_var1 ind_var2;&lt;BR /&gt;datalines;&lt;BR /&gt;1 1 1 12 10 .9&lt;BR /&gt;1 2 1 15 7 8.3&lt;BR /&gt;1 3 1 8.9 8 2.3&lt;BR /&gt;1 4 0 0 6 2&lt;BR /&gt;1 5 0 0 6 5&lt;BR /&gt;1 6 1 19 3 4&lt;BR /&gt;1 7 1 4 4 3&lt;BR /&gt;&lt;BR /&gt;2 1 1 12 10 5&lt;BR /&gt;2 2 0 0 7 3&lt;BR /&gt;2 3 0 0 8 3&lt;BR /&gt;2 4 0 0 6 2&lt;BR /&gt;&lt;BR /&gt;3 1 1 40 20 10&lt;BR /&gt;3 2 1 24 17 19&lt;BR /&gt;3 3 0 0 18 2.3&lt;BR /&gt;3 4 0 0 16 12&lt;BR /&gt;3 5 0 0 26 35&lt;BR /&gt;3 6 0 0 33 24&lt;BR /&gt;3 7 0 0 24 13&lt;BR /&gt;3 8 0 0 12 31&lt;BR /&gt;3 9 1 42 36 18;&lt;BR /&gt;&lt;BR /&gt;PROC GLIMMIX DATA=test;&lt;BR /&gt;CLASS CUSTOMER_ID dep_var1;&lt;BR /&gt;MODEL dep_var2 = ind_VAR1 ind_VAR2 dep_var1 &lt;BR /&gt;/LINK = IDENTITY DIST = NORMAL SOLUTION;&lt;BR /&gt;RANDOM INTERCEPT/ SUBJECT = CUSTOMER_ID TYPE= VC;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;PROC PANEL DATA=test;&lt;BR /&gt;CLASS dep_var1;&lt;BR /&gt;MODEL dep_var2 = ind_VAR1 ind_VAR2 dep_var1 &lt;BR /&gt;/RANONE VCOMP = FB;&lt;BR /&gt;ID CUSTOMER_ID TIME_PERIOD;&lt;BR /&gt;RUN;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2016 14:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/286576#M15176</guid>
      <dc:creator>BK2</dc:creator>
      <dc:date>2016-07-23T14:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/286888#M15219</link>
      <description>&lt;P&gt;Actually, the two procedures are giving you the "same" results, with slight variations because of different estimation algorithms. The apparent difference is due to the way the two procedures parameterize the class variable. In GLIMMIX, the parameter for the last level of the class variable (1 here) is forced to be 0. In PANEL, the parameter for the first level of the class variable (0 here) is forced to be 0. This reverses sign for the class parameter, and changes the intercept.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try running GLIMMIX by&lt;STRONG&gt; removing dep_var1 from the class statement&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;CLASS CUSTOMER_ID&amp;nbsp; time_period;&lt;BR /&gt;MODEL dep_var2 = ind_VAR1 ind_VAR2 dep_var1 &lt;BR /&gt;/LINK = IDENTITY DIST = NORMAL SOLUTION;&lt;BR /&gt;RANDOM INTERCEPT/ SUBJECT = CUSTOMER_ID TYPE= VC;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You now get the same results as with PANEL. This can only be done when there are two levels to the class variable, coded as 0 and 1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the random effect variance is 0. That also is contributing to the equivalence of the two methods.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 15:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/286888#M15219</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2016-07-25T15:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc panel vs. proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/287209#M15239</link>
      <description>&lt;P&gt;Thanks, Ivm! That makes more sense. I understand the RE implementation a little better now :).&amp;nbsp;I appreciate your time and inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 14:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-panel-vs-proc-glimmix/m-p/287209#M15239</guid>
      <dc:creator>BK2</dc:creator>
      <dc:date>2016-07-26T14:32:07Z</dc:date>
    </item>
  </channel>
</rss>

