<?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 gee  - Nesting continuous variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-gee-Nesting-continuous-variable/m-p/746901#M36350</link>
    <description>&lt;P&gt;As noted in the GEE documentation, the variable(s) in the SUBJECT= effect must be in the CLASS statement. It is not a problem since you are not estimating parameters for the levels of the SUBJECT= variable(s). Also, since you say your response has three nonmissing levels, the response is not binary and DIST=BIN is incorrect. If you really just want to use the observations with levels 0 and 1, then you should remove the other observations first or use a WHERE statement to filter them out. Generally, a nested effect is not needed in the SUBJECT= option. See the discussion in &lt;A href="http://support.sas.com/kb/24200" target="_self"&gt;this note&lt;/A&gt; for clarification.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 21:05:32 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2021-06-09T21:05:32Z</dc:date>
    <item>
      <title>proc gee  - Nesting continuous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-gee-Nesting-continuous-variable/m-p/746868#M36347</link>
      <description>&lt;P&gt;Hi SAS Users,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on a statistical procedure and i am getting the below error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Nesting of continuous variable not allowed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gee data=input_data descend;&lt;BR /&gt;class type plans ;&lt;BR /&gt;model Outcome_ind = type plans counter /&lt;BR /&gt;dist=bin link=logit;&lt;BR /&gt;repeated subject=time_period(id) / corr=ar corrw;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;type values are - 1,2,3 ( numeric)&lt;/P&gt;
&lt;P&gt;plans values are - planA, planB, planC (charcter)&lt;/P&gt;
&lt;P&gt;counter values are - 1,2,3....100+ (numeric)&lt;/P&gt;
&lt;P&gt;Outcome_ind values are - 1,55,0,. (dot)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ana&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 19:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-gee-Nesting-continuous-variable/m-p/746868#M36347</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2021-06-09T19:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: proc gee  - Nesting continuous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-gee-Nesting-continuous-variable/m-p/746873#M36348</link>
      <description>&lt;P&gt;You need to put ID in the CLASS statement. Also, I do not know your data, but generally speaking your subject effect might be ID, rather than time_period(id).&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 19:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-gee-Nesting-continuous-variable/m-p/746873#M36348</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2021-06-09T19:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc gee  - Nesting continuous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-gee-Nesting-continuous-variable/m-p/746886#M36349</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, Thanks for the reply. I tried replicating the below SAS example ,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc gee data=input_data descend;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;class type plans ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model Outcome_ind = type plans counter /&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dist=bin link=logit;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;repeated subject=time_period(id) / corr=ar corrw;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My scenario -&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc gee data=input_dataset descend;&lt;BR /&gt;class time_period type plans;&lt;BR /&gt;model outcome_ind = type PLANs counter /&lt;BR /&gt;dist=bin link=logit;&lt;BR /&gt;repeated subject=time_period(id) / corr=ar corrw;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have added time_period in the class and still getting the same error. i have 2 million's&amp;nbsp; ID's. I do not think it should be the part of class.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Ana&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 20:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-gee-Nesting-continuous-variable/m-p/746886#M36349</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2021-06-09T20:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc gee  - Nesting continuous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-gee-Nesting-continuous-variable/m-p/746901#M36350</link>
      <description>&lt;P&gt;As noted in the GEE documentation, the variable(s) in the SUBJECT= effect must be in the CLASS statement. It is not a problem since you are not estimating parameters for the levels of the SUBJECT= variable(s). Also, since you say your response has three nonmissing levels, the response is not binary and DIST=BIN is incorrect. If you really just want to use the observations with levels 0 and 1, then you should remove the other observations first or use a WHERE statement to filter them out. Generally, a nested effect is not needed in the SUBJECT= option. See the discussion in &lt;A href="http://support.sas.com/kb/24200" target="_self"&gt;this note&lt;/A&gt; for clarification.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 21:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-gee-Nesting-continuous-variable/m-p/746901#M36350</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-06-09T21:05:32Z</dc:date>
    </item>
  </channel>
</rss>

