<?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: Multilevel analysis with a samll number of events using the PROC GLIMMIX procedure in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488626#M25375</link>
    <description>&lt;P&gt;When you get an error it is very helpful to copy the code and error message(s) both from the log and paste into a code box opened using the forum's {I} icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a minimum all CLASS variables must appear in the MODEL statement. I don't see REGION appearing on the model statement but is on the class statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 15:21:17 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-08-21T15:21:17Z</dc:date>
    <item>
      <title>Multilevel analysis with a samll number of events using the PROC GLIMMIX procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488391#M25362</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am doing a multilevel level analysis using the PROC GLIMMIX procedure in SAS. The data I got is a categorical data with a very small number of events. The data were collected using multi-stage cluster sampling procedures, i.e., individuals were nested within clusters, and clusters were nested within regions. The total sample size is 6954 and the events occurred are 254, which is only 3.65% of the total samples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the number of events are very small, I am getting an error message when I run it. Is there another possible statistical method that can accommodate it? I really appreciate your advice and support in this regard.&lt;/P&gt;&lt;P&gt;The sample code I used is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;glimmix&lt;/STRONG&gt; data = home.caesarean2 method = laplace;&lt;/P&gt;&lt;P&gt;class region hregion;&lt;/P&gt;&lt;P&gt;model M17_1 (event = last) = v012 v106 v717 v501 v701 v705 v150h v136 v190 v130 v743a v201 m14_1 m10_1 v212&lt;/P&gt;&lt;P&gt;FACTYPE distance csa1 csa2 csr1 csr2 gr1 gr2 hfma v025&lt;/P&gt;&lt;P&gt;HREGION/s cl dist = binary link = logit;&lt;/P&gt;&lt;P&gt;random intercept v012 v106 v717 v501 v701 v705 v150h v136 v190 v130 v743a v201 m14_1 m10_1 v212&lt;/P&gt;&lt;P&gt;FACTYPE distance csa1 csa2 csr1 csr2 gr1 gr2 hfma v025 /subject = region cl s type = vc;&lt;/P&gt;&lt;P&gt;random intercept v012 v106 v717 v501 v701 v705 v150h v136 v190 v130 v743a v201 m14_1 m10_1 v212&lt;/P&gt;&lt;P&gt;/subject = v001 (region) cl s type = vc;&lt;/P&gt;&lt;P&gt;covtest / wald;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Teketo &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 23:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488391#M25362</guid>
      <dc:creator>Teketo</dc:creator>
      <dc:date>2018-08-20T23:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel analysis with a samll number of events using the PROC GLIMMIX procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488626#M25375</link>
      <description>&lt;P&gt;When you get an error it is very helpful to copy the code and error message(s) both from the log and paste into a code box opened using the forum's {I} icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a minimum all CLASS variables must appear in the MODEL statement. I don't see REGION appearing on the model statement but is on the class statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 15:21:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488626#M25375</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-21T15:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel analysis with a samll number of events using the PROC GLIMMIX procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488656#M25378</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;says, it would be &lt;EM&gt;very helpful&lt;/EM&gt; to have details about the nature of the errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your model is very ambitious: it specifies a lot of parameters to estimate, and I would not be surprised if you've just run out of data to support all that estimation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GLIMMIX allows SUBJECTs in RANDOM statements to be continuous rather than classification, but see&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect009.htm" target="_self"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect009.htm&lt;/A&gt;&amp;nbsp;where it says&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SUBJECT=&lt;I&gt;effect&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SUB=&lt;I&gt;effect&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;identifies the subjects in your generalized linear mixed model. Complete independence is assumed across subjects. Specifying a subject effect is equivalent to nesting all other effects in the RANDOM statement within the subject effect.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Continuous variables and computed variables are permitted with the SUBJECT=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option. PROC GLIMMIX does not sort by the values of the continuous variable but considers the data to be from a new subject whenever the value of the continuous variable changes from the previous observation.&lt;/FONT&gt; Using a continuous variable can decrease execution time for models with a large number of subjects and also prevents the production of a large "Class Levels Information" table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if REGION and V001(REGION) are not sorted appropriately, you could be specifying too many subjects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think your specification of random slopes at both REGION and V001(REGION) levels could be incorrect. I would think that you would use &lt;EM&gt;means&lt;/EM&gt; (computed over the V001 levels within each REGION) as predictor variables at the REGION level. The&amp;nbsp;&lt;A href="http://journals.sagepub.com/doi/10.3102/10769986023004323" target="_self"&gt;paper by Judith Singer&lt;/A&gt;&amp;nbsp;does a good job of developing this idea; there are lots of other resources as well, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to considering a different model specification and understanding more about what you are attempting, I would start simply and build up--in other words, do not throw all of the predictors into the model at once. With this many continuous predictor variables, assessing the linearity assumption will be a challenge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 18:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488656#M25378</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-08-21T18:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel analysis with a samll number of events using the PROC GLIMMIX procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488750#M25384</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did include all the class variables in the model statement.&lt;/P&gt;&lt;P&gt;The SUBJECTs in the RANDOM statement are discrete, i.e. REGION ranges from 1 to 11 and V001 from 1 to 622.&lt;/P&gt;&lt;P&gt;SAS stop processing the procedure; I am getting the following error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data = cs.caesarean2 method = laplace;&lt;BR /&gt;class region hregion;&lt;BR /&gt;model M17_1 (event = last) = v012 v106 v717 v501 v701 v705 v150h v136 v190 v130 v743a v201&lt;BR /&gt;m14_1 m10_1 v212&lt;BR /&gt;FACTYPE distance csa1 csa2 csr1 csr2 gr1 gr2 hfma v025&lt;BR /&gt;region HREGION/s cl dist = binary link = logit;&lt;BR /&gt;random intercept v012 v106 v717 v501 v701 v705 v150h v136 v190 v130 v743a v201 m14_1 m10_1 v212&lt;BR /&gt;FACTYPE distance csa1 csa2 csr1 csr2 gr1 gr2 hfma v025 /subject = region cl s type = vc;&lt;BR /&gt;random intercept v012 v106 v717 v501 v701 v705 v150h v136 v190 v130 v743a v201 m14_1 m10_1 v212&lt;BR /&gt;/subject = v001 (region) cl s type = vc;&lt;BR /&gt;covtest / wald;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The GLIMMIX procedure is modeling the probability that M17_1='1'.&lt;BR /&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;BR /&gt;NOTE: PROCEDURE GLIMMIX used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.40 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.61 seconds&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Teketo&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 01:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488750#M25384</guid>
      <dc:creator>Teketo</dc:creator>
      <dc:date>2018-08-22T01:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multilevel analysis with a samll number of events using the PROC GLIMMIX procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488761#M25385</link>
      <description>&lt;P&gt;Ah, yes, you do have REGION as a CLASS variable, my apologies. But V001 is not in CLASS, so sorting would be a necessary concern.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still, your model is attempting to estimate 622 random effects (i.e., one slopes for EACH level of V001) for EACH continuous predictor variable (of which there are 15). That is a lot, a lot of parameter estimates: even if you had enough data, you don't have enough memory. I'm still thinking that you are asking&amp;nbsp;way&amp;nbsp;too much of your model, and that you need to ponder what statistical model mirrors your experimental design, what you want, and what is possible. Push back from the keyboard, and give it some thought.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 03:37:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multilevel-analysis-with-a-samll-number-of-events-using-the-PROC/m-p/488761#M25385</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-08-22T03:37:01Z</dc:date>
    </item>
  </channel>
</rss>

