<?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 genmod - estimate at each visit in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102376#M5411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 1445 subjects, 2 levels of TRT01PN, 18 levels of AVISITN and 28 levels of COUNTRY.&lt;/P&gt;&lt;P&gt;Number of Observations Read&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 162927&lt;/P&gt;&lt;P&gt;Number of Observations Used&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 162927&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the information from the previous model I did:&lt;/P&gt;&lt;P&gt;Dimensions&lt;/P&gt;&lt;P&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;G-side Cov. Parameters&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21&lt;/P&gt;&lt;P&gt;Columns in X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56&lt;/P&gt;&lt;P&gt;Columns in Z per Subject&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3022&lt;/P&gt;&lt;P&gt;Subjects (Blocks in V)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28&lt;/P&gt;&lt;P&gt;Max Obs per Subject&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17946&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fyi, the modeling is done on data from the pool of 5 studies. I will also have to do it on each individual studies, in which we may have less patients, less countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried what you suggested and the same error occurs in the log :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;= efftab ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;usubjid trt01pn avisitn country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;respfn = avisitn trt01pn avisitn*trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;noint &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=bin &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;intercept / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: green; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;/*intercept*/&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt; avisitn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=usubjid*country &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=csh ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2013 08:23:52 GMT</pubDate>
    <dc:creator>hetuvio</dc:creator>
    <dc:date>2013-04-10T08:23:52Z</dc:date>
    <item>
      <title>Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102369#M5404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to perform a trt comparison by visit using a logistic regression model with repeated measures including factors for treatment and country/region as well as visit as repeated measure. In addition, the least-square means including 95% confidence intervals of both trt groups will be splotted versus time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have started to work on a modeling using proc genmod.&lt;/P&gt;&lt;P&gt;* USUBJID is the subject identifier.&lt;/P&gt;&lt;P&gt;* Dependent variable = RESPFN is coded 1 for responder and 0 for non-responder&lt;/P&gt;&lt;P&gt;* TRT01PN is coded 0 for PBO, 1 for Active&lt;/P&gt;&lt;P&gt;* AVISITN is the numeric version of AVISIT (BASELINE, WEEK 1, WEEK 2, ..., WEEK 24, ..., WEEK 52) - Note that: AVISITN doesn't reflect the real time. For example, BASELINE is coded 20, WEEK 1 is coded 30, WEEK 2 is coded 40, &lt;SPAN style="text-decoration: underline;"&gt;but:&lt;/SPAN&gt; WEEK 4 is coded 50 (not 60). Should I re-create a new numeric variable containing the real time ?&lt;/P&gt;&lt;P&gt;The responder status is asessed at each visit for all patients.&lt;/P&gt;&lt;P&gt;* COUNTRY&amp;nbsp; contains to country code. We can have up to 28 countries. It represents a lot of categories. We may not need this variable at the end - since it may have a lots of cats, which may cause issues in the modelling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know what do you think of the code below ?&lt;/P&gt;&lt;P&gt;Also :&lt;/P&gt;&lt;P&gt;- Which type of working correlation matrix would you use?&lt;/P&gt;&lt;P&gt;- I'm not sure that the inclusion of AVISITN in the proc genmod is really good (I've seen some examples on SAS documentation with some visit variables, but the variable was not included in the proc genmod). But, if I do not include it in my model, I don't see how I could estimate OR at each visit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;ods &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;output&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt; estimates=ESTIMtest ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;genmod&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;= efftab &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;descending&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;class&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt; usubjid trt01pn avisitn country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;model&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt; respfn = avisitn trt01pn country / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;noint&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=bin &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;repeated&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=usubjid / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;withinsubject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=avisitn ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;estimate&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;"OR Active versus PBO at WEEK 1"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt; trt01pn -&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt; avisitn &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;30 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;/ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;exp&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;I'm working on SAS version 9.3. It would be great if you could provide me with your input on this statistical analysis! I have started to work on it since a while without managing to go very much further.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Thanks so much in advance for your help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;Violaine &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 10:22:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102369#M5404</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-09T10:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102370#M5405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would add one more term to the model statement: avistn*trt01pn.&amp;nbsp; As it currently stands the model fits one repeated "trajectory" in avistn for both PBO and Active.&amp;nbsp; I would think that one objective would be to compare the OR at various time points for the two treatments, and without the interaction, the difference between the two treatments will be identical at all time points.&amp;nbsp; Then, the estimate statement looks like it is treating avisitn as a continuous variable, while it has been used as a class variable in the model.&amp;nbsp; Thus, the estimate is going to be 30 times the first component of avisitn, rather than the value at avisitn=30 (Week 1).&amp;nbsp; Finally, do you want specific estimates per country, or is it more of a random effect, adding only variablility?&amp;nbsp; For now, I am assuming it is a fixed effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that, I worry that using a GEE rather than a generalized linear mixed model will lead to estimates that are marginal over the time points rather than conditional on them (see Stroup (2013)&amp;nbsp; &lt;EM&gt;Generalized Linear Mixed Models&lt;/EM&gt;), where he points out the difference in estimates under the two models.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;= efftab &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;descending&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; usubjid trt01pn avisitn country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; respfn = avisitn|trt01pn|country / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;noint &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bin &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;random intercept avisitn/subject=usubjid type=csh&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;; /*Data are unevenly spaced in time, and likely have differing variances at each time point due to the distribution*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;lsmestimate&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"OR Active versus PBO at WEEK 1"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;avisitn*trt01pn /*&amp;lt;This will depend on the number of visits to correctly compare.&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt; It will look like -1 followed by (avisitn - 1) zeros, and then 1 followed by (avisitn - 1) zeros. &amp;gt; */ &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;exp&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Good luck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Steve Denham&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 11:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102370#M5405</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-09T11:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102371#M5406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your support. Please see further details/questions belows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)&lt;/STRONG&gt; "&lt;EM&gt;Thus, the estimate is going to be 30 times the first component of avisitn, rather than the value at avisitn=30 (Week 1).&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;--&amp;gt; I'm sorry, I don't get what you mean here.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2)&lt;/STRONG&gt; "&lt;EM&gt;Finally, do you want specific estimates per country, or is it more of a random effect, adding only variablility?&amp;nbsp; For now, I am assuming it is a fixed effect.&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;--&amp;gt; Actually, this is just an adjustment variable - we don't need to use it for our estimates.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3)&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;random&lt;/SPAN&gt; statement : why do you include the intercept while we "&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;noint&lt;/SPAN&gt;" is specified in the &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;model&lt;/SPAN&gt; statement? do you think that creating a numeric variable for visit representing the 'real time' could prevent us to use the &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;random&lt;/SPAN&gt; statement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try to find the documentation you suggested: Stroup (2013)&amp;nbsp; &lt;EM&gt;Generalized Linear Mixed Models&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 12:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102371#M5406</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-09T12:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102372#M5407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Your estimate statement comes down to: the difference between the first level of trt01pn and the second level of trt01pn plus 30 times the first level of avisitn.&amp;nbsp; Does that make things clearer?&amp;nbsp; If not, check in the Shared Concepts and Topics part of the documentation for the ESTIMATE and LSMESTIMATE statements.&lt;/P&gt;&lt;P&gt;2) Then country is a random effect, for which we would like to remove the variability.&amp;nbsp; The GLIMMIX code for this would look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;= efftab &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;descending&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; usubjid trt01pn avisitn country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;model&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; respfn = avisitn|trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;noint &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bin &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;random intercept/subject=country;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;random intercept avisitn/subject=usubjid*country type=csh&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;; /*Data are unevenly spaced in time, and likely have differing variances at each time point due to the distribution*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;lsmestimate&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"OR Active versus PBO at WEEK 1"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;avisitn*trt01pn /*&amp;lt;This will depend on the number of visits to correctly compare.&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt; It will look like -1 followed by (avisitn - 1) zeros, and then 1 followed by (avisitn - 1) zeros. &amp;gt; */ &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;exp&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) The use of the intercept term in the random statements doesn't have anything to do with the fixed effects parameterization.&amp;nbsp; It is a technique designed to improve computational performance, by utilizing block diagonalization of the variance-covariance matrix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as fitting the "real time" as an effect--are you willing to accept that the effect is strictly linear in time?&amp;nbsp; If not, then comes the problem of how to model time adequately.&amp;nbsp; That advantage of a categorical approach is that you do not assume any particular structure to the time dependence (although you DO assume various correlations through the type= option).&amp;nbsp; It could be linear, polynomial, non-linear or non-describable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 12:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102372#M5407</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-09T12:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102373#M5408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I got it now.&lt;/P&gt;&lt;P&gt;I'll make a try with your proposed code, and look further into the documentation of the proc glimmix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 14:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102373#M5408</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-09T14:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102374#M5409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below warning when running the following code :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(For now, I haven't included the &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;lsmestimate&lt;/SPAN&gt; statement as I want to solve the error below first)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #0e86d0; line-height: 115%; font-family: 'SAS Monospace'; font-size: 8pt; mso-ansi-language: EN-US; mso-bidi-font-family: 'SAS Monospace';"&gt;NOTE: The model does not contain an intercept. Columns of X are scaled only and not centered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: red; line-height: 115%; font-family: 'SAS Monospace'; font-size: 8pt; mso-ansi-language: EN-US; mso-bidi-font-family: 'SAS Monospace';"&gt;ERROR: Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this system. Consider changing your model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: #0e86d0; line-height: 115%; font-family: 'SAS Monospace'; font-size: 8pt; mso-ansi-language: EN-US; mso-bidi-font-family: 'SAS Monospace';"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;= efftab ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;usubjid trt01pn avisitn country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;respfn = avisitn trt01pn avisitn*trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;noint &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=bin &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;intercept / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;intercept avisitn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=usubjid*country &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=csh ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for your advise,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 15:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102374#M5409</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-09T15:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102375#M5410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How many subjects do you have?&amp;nbsp; That has to be what is hurting this, as 50 levels of avisitn, 2 of trt01pn, and 100 of the interaction is NOT a big model.&amp;nbsp; Try dropping the intercept from the second random statement as a start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 17:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102375#M5410</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-09T17:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102376#M5411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 1445 subjects, 2 levels of TRT01PN, 18 levels of AVISITN and 28 levels of COUNTRY.&lt;/P&gt;&lt;P&gt;Number of Observations Read&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 162927&lt;/P&gt;&lt;P&gt;Number of Observations Used&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 162927&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the information from the previous model I did:&lt;/P&gt;&lt;P&gt;Dimensions&lt;/P&gt;&lt;P&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;G-side Cov. Parameters&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21&lt;/P&gt;&lt;P&gt;Columns in X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56&lt;/P&gt;&lt;P&gt;Columns in Z per Subject&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3022&lt;/P&gt;&lt;P&gt;Subjects (Blocks in V)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28&lt;/P&gt;&lt;P&gt;Max Obs per Subject&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17946&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fyi, the modeling is done on data from the pool of 5 studies. I will also have to do it on each individual studies, in which we may have less patients, less countries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried what you suggested and the same error occurs in the log :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;= efftab ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;usubjid trt01pn avisitn country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;respfn = avisitn trt01pn avisitn*trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;noint &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=bin &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;intercept / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: green; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;/*intercept*/&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt; avisitn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=usubjid*country &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=csh ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 08:23:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102376#M5411</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-10T08:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102377#M5412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I have just seen an issue in my code. I have to fix it first. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 08:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102377#M5412</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-10T08:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102378#M5413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I missed to add a selection previsouly.&lt;/P&gt;&lt;P&gt;I've re-run with the original code you proposed, and also dropping the intercept in the 2nd random statement as you suggested.&lt;/P&gt;&lt;P&gt;Both ways lead to the same information in the log :&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3333" alt="log_glimmix.png" class="jive-image-thumbnail jive-image" height="120" src="https://communities.sas.com/legacyfs/online/3333_log_glimmix.png" style="float: none;" width="652" /&gt;&lt;/P&gt;&lt;P&gt;I have 546 subjects, 2 levels of TRT01PN, 18 levels of AVISITN, 25 levels of countries. And below are additional informations:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3332" alt="info_glimmix.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/3332_info_glimmix.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 09:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102378#M5413</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-10T09:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102379#M5414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it comes down to not enough observations to fit the Z matrix.&amp;nbsp; The heterogeneous variance type (CSH) is just not going to work.&amp;nbsp; I would suggest recoding avisitn to the actual week, at this point, and then trying a spatial covariance structure appropriate to unevenly spaced time points.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;= efftab ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;weekcont=week;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;usubjid trt01pn week country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;respfn = week trt01pn week*trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;noint &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bin &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;intercept / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;random week&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;/ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=usubjid*country &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=sp(pow)(weekcont) ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;run &lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Steve Denham&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 12:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102379#M5414</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-10T12:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102380#M5415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just tried the new proc glimmix. Unfortunately, the error still occur in the log (insuficient memory). And this is the info I get in the SAS output:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3334" alt="info_glimmix.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/3334_info_glimmix.png" /&gt;&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 12:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102380#M5415</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-10T12:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102381#M5416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am missing something obvious today.&amp;nbsp; For now, try ignoring the country effect, and let's see what is happening with the repeated measures.&amp;nbsp; Later, after that is working, we can try incorporating country as a random effect, and not use the subject= option.&amp;nbsp; First things first, though.&amp;nbsp; What happens when you comment out the random intercept/subject=country line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 12:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102381#M5416</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-10T12:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102382#M5417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the following codes :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;= efftab ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;usubjid trt01pn avisitn country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;respfn = avisitn trt01pn avisitn*trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;noint&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=bin &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;intercept avisitn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=usubjid*country &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=csh ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;= efftab ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;weekcont=week;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;usubjid trt01pn week country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;respfn = week trt01pn week*trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;noint&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=bin &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;week/ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=usubjid*country &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=sp(pow)(weekcont) ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;= efftab ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;usubjid trt01pn avisitn ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;respfn = avisitn trt01pn avisitn*trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;noint &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=bin &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;intercept avisitn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=usubjid &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=csh ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;= efftab ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;weekcont=week;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;usubjid trt01pn week ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;respfn = week trt01pn week*trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;noint&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=bin&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;week/ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=usubjid &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=sp(pow)(weekcont) ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;= efftab ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;usubjid trt01pn avisitn country;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;respfn = avisitn trt01pn avisitn*trt01pn country / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;noint&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=bin &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;_residual_ / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=usubjid &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=csh;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 5 codes above lead to the same results:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="log_glimmix.png" class="jive-image-thumbnail jive-image" height="28" src="https://communities.sas.com/legacyfs/online/3338_log_glimmix.png" width="549" /&gt;&lt;/P&gt;&lt;P&gt;Fyi, when I remove the statement &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random&lt;/SPAN&gt;, it converges. But this is not what we want.&lt;/P&gt;&lt;P&gt;If you have any other ideas for me to try, feel free to let me know.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 13:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102382#M5417</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-10T13:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102383#M5418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, we have made progress.&amp;nbsp; "Did not converge" is much better than "Insufficient memory."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, try adding the nloptions command.&amp;nbsp; For the code I first recommended, try:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;= efftab ; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;weekcont=week;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;usubjid trt01pn week country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;respfn = week trt01pn week*trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;noint&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=bin &lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;week/ &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=usubjid*country &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=sp(pow)(weekcont) ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;nloptions maxiter=200;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: navy; font-size: 10pt;"&gt;&lt;STRONG&gt;run &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Glimmix defaults to 20 iterations, and when the likelihood space is relatively flat, or the initial conditions aren't close to the maximum, you may need to increase the number.&amp;nbsp; This should get you close (look at the iteration history and what the objective function is doing).&amp;nbsp; You may need to relax the convergence criterion if the objective function has flattened out, but still no convergence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Steve Denham&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 14:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102383#M5418</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-10T14:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102384#M5419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help. It looks better... See below the iteration history:&lt;/P&gt;&lt;P&gt;As you can see below, Objective function = 37408 from iteration 6 to iteration 199.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="glim1.png" class="jive-image-thumbnail jive-image" height="313" src="https://communities.sas.com/legacyfs/online/3339_glim1.png" width="544" /&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="glim2.png" class="jive-image-thumbnail jive-image" height="57" src="https://communities.sas.com/legacyfs/online/3340_glim2.png" width="552" /&gt;&lt;/P&gt;&lt;P&gt;I have seen that there are a lot of option regarding the convergence (PCONV, ABSCONV, ABSFCONV, ABSGCONV, ABSXCONV, FCONV, GCONV). How criterion would you use to relax the convergence criterion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 15:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102384#M5419</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-10T15:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102385#M5420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First step, I would increase maxiter to 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PCONV is the only one that directly affects the outer loop process.&amp;nbsp; It looks at the parameter set convergence.&amp;nbsp; I generally try to "sneak up" on it.&amp;nbsp; The default is 1e-8, so I generally try PCONV=1e-7 as my first attempt.&amp;nbsp; All of the other options refer to the inner loop process and are put in the NLOPTIONS statement.&amp;nbsp; Unless there is a warning in the log that something is failing in the inner loop, I would recommend staying away from these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 16:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102385#M5420</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-10T16:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102386#M5421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have increased maxiter to 1000. Proc glimmix took about 20 minutes to run, and it didn't converge. See below the last part of the iteration history:&lt;/P&gt;&lt;P&gt;Again, the Objective function stays close to 37408.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="glim1.png" class="jive-image-thumbnail jive-image" height="117" src="https://communities.sas.com/legacyfs/online/3354_glim1.png" width="610" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for your thoughts,&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 07:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102386#M5421</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-11T07:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102387#M5422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Time to use PCONV.&amp;nbsp; You are close to convergence.&amp;nbsp; Start with PCONV=1e-7, and if that doesn't work, choose slightly larger values until you get convergence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 11:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102387#M5422</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-04-11T11:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod - estimate at each visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102388#M5423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following code works and converges: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;proc &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: navy; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;glimmix&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;data &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;= efftab &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;pconv&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;1e-5 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;weekcont=week;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;class &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;usubjid trt01pn week country ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;model &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;respfn = week trt01pn week*trt01pn / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;noint&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;dist&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=bin &lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;link&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=logit ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;random &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;week / &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;subject&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=usubjid*country &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;type&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;=sp(pow)(weekcont) ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: green; font-family: 'Courier New'; font-size: 10pt;"&gt;*nloptions maxiter=200 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the following results:&lt;/P&gt;&lt;P&gt; &lt;IMG alt="resu.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/3355_resu.png" /&gt;&lt;/P&gt;&lt;P&gt;Then, I used the following statement to compute the OR at Week 1 for example : &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;estimate &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;SPAN lang="EN-US" style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;OR at WEEK 1"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt; trt01pn &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;1 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;week &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt; mso-ansi-language: EN-US;"&gt;0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;trt01pn*week&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1 &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0 &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0 &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0 &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0 &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0 &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0 &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0 &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt; &lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0 &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;0&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; / &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;exp &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; But it leads to the following result:&lt;/P&gt;&lt;P&gt;Did I make a mistake? I think that an OR cannot be negative, so I'm probably missing something. Also, in addition to the OR, I'd like to get the CI + p-value of the diff between trt group.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="or.png" class="jive-image-thumbnail jive-image" height="87" src="https://communities.sas.com/legacyfs/online/3356_or.png" width="627" /&gt;&lt;/P&gt;&lt;P&gt;Thanks for any idea,&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 12:22:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-genmod-estimate-at-each-visit/m-p/102388#M5423</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2013-04-11T12:22:43Z</dc:date>
    </item>
  </channel>
</rss>

