<?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 Proc nlmixed GEE for ZINB in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-nlmixed-GEE-for-ZINB/m-p/892309#M44219</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to fit a GEE ZINB model using proc nlmixed. I have turned to proc nlmixed as neither proc genmod or proc GEE can handle zero-inflated distributions for GEE analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following SAS sources, such as note 2 &lt;A href="https://support.sas.com/kb/44/354.html" target="_self"&gt;here&lt;/A&gt; , I believe I can set up the nlmixed statement correctly as needed. However, I am not sure how to specify clustering. In general, my code looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc nlmixed data = data;
	/* linear predictor for zero inflation */
	eta_zero = a0;
	prob_zero = 1/(1 + exp(-eta_zero));
	/* linear predictor for negative binomial */;
	eta_mean = b0 + b1*dTLN + b2*dNLLN + b3*dT;
	mean = exp(eta_mean + myoff); 
	IF y= 0 THEN lglk = LOG(prob_zero + (1-prob_zero)*(1+(phi*mean))**(1/phi));
			 ELSE lglk = LOG(1-prob_zero) + y*LOG(phi*mean) - (y+(1/phi))*LOG(1+(phi*mean))
			 + lgamma(y+(1/phi)) - lgamma(1/phi) - lgamma(y+1);
	model y ~ general(lglk);&lt;BR /&gt;        random ??? ;
run;&lt;/PRE&gt;&lt;P&gt;I understand proc nlmixed can utilize a 'random' statement which can include a subject identifier, but I do not want to include any random effects (I am trying to avoid a linear mixed effects model). I would just like to account for clustering/correlation as a subject can provide more than one response. Note, the data is not a longitudinal study setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to manipulate the random statement to allow for some correlation structure but not to estimate any random effects, setting up for interpretation as a GEE? Or is there another statement/line in nlmixed I can do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 14:46:29 GMT</pubDate>
    <dc:creator>rdemass</dc:creator>
    <dc:date>2023-09-01T14:46:29Z</dc:date>
    <item>
      <title>Proc nlmixed GEE for ZINB</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-nlmixed-GEE-for-ZINB/m-p/892309#M44219</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to fit a GEE ZINB model using proc nlmixed. I have turned to proc nlmixed as neither proc genmod or proc GEE can handle zero-inflated distributions for GEE analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following SAS sources, such as note 2 &lt;A href="https://support.sas.com/kb/44/354.html" target="_self"&gt;here&lt;/A&gt; , I believe I can set up the nlmixed statement correctly as needed. However, I am not sure how to specify clustering. In general, my code looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc nlmixed data = data;
	/* linear predictor for zero inflation */
	eta_zero = a0;
	prob_zero = 1/(1 + exp(-eta_zero));
	/* linear predictor for negative binomial */;
	eta_mean = b0 + b1*dTLN + b2*dNLLN + b3*dT;
	mean = exp(eta_mean + myoff); 
	IF y= 0 THEN lglk = LOG(prob_zero + (1-prob_zero)*(1+(phi*mean))**(1/phi));
			 ELSE lglk = LOG(1-prob_zero) + y*LOG(phi*mean) - (y+(1/phi))*LOG(1+(phi*mean))
			 + lgamma(y+(1/phi)) - lgamma(1/phi) - lgamma(y+1);
	model y ~ general(lglk);&lt;BR /&gt;        random ??? ;
run;&lt;/PRE&gt;&lt;P&gt;I understand proc nlmixed can utilize a 'random' statement which can include a subject identifier, but I do not want to include any random effects (I am trying to avoid a linear mixed effects model). I would just like to account for clustering/correlation as a subject can provide more than one response. Note, the data is not a longitudinal study setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to manipulate the random statement to allow for some correlation structure but not to estimate any random effects, setting up for interpretation as a GEE? Or is there another statement/line in nlmixed I can do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 14:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-nlmixed-GEE-for-ZINB/m-p/892309#M44219</guid>
      <dc:creator>rdemass</dc:creator>
      <dc:date>2023-09-01T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc nlmixed GEE for ZINB</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-nlmixed-GEE-for-ZINB/m-p/892345#M44223</link>
      <description>A marginal, GEE type model uses R-side random effects and is not supported in NLMIXED which only allows for G-side effects.  That is, the equivalent to the _RESIDUAL_ keyword in the RANDOM statement is not available in NLMIXED like it is in GLIMMIX. The best you can do would be to add random effects for your subjects as you suggest.</description>
      <pubDate>Fri, 01 Sep 2023 17:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-nlmixed-GEE-for-ZINB/m-p/892345#M44223</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-09-01T17:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc nlmixed GEE for ZINB</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-nlmixed-GEE-for-ZINB/m-p/892346#M44224</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&amp;nbsp;Thanks for the insight. Are you saying there is a way to implement the model I would like in GLIMMIX?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 17:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-nlmixed-GEE-for-ZINB/m-p/892346#M44224</guid>
      <dc:creator>rdemass</dc:creator>
      <dc:date>2023-09-01T17:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc nlmixed GEE for ZINB</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-nlmixed-GEE-for-ZINB/m-p/892347#M44225</link>
      <description>No, I'm just noting, syntactically and statistically, what NLMIXED lacks and would need to fit that model</description>
      <pubDate>Fri, 01 Sep 2023 17:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-nlmixed-GEE-for-ZINB/m-p/892347#M44225</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-09-01T17:32:03Z</dc:date>
    </item>
  </channel>
</rss>

