<?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: testing the significance of the difference between groups in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/245513#M56169</link>
    <description>&lt;P&gt;proc genmod data=allthree order=formatted;&lt;/P&gt;&lt;P&gt;class hospital prepost cohort/ desc param=ref;&lt;/P&gt;&lt;P&gt;model cost=prepost cohort prepost*cohort covariate1 covariate2/link=log dist=gamma;&lt;/P&gt;&lt;P&gt;&amp;nbsp;repeated subject=hospital/type=ind;&lt;/P&gt;&lt;P&gt;lsmeans prepost cohort prepost*cohort/ilink diff;&lt;/P&gt;&lt;P&gt;slice prepost*cohort/nof ilink sliceby=cohort diff; /* This will give a test of pre vs post for each level of cohort */ run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the code above,&lt;/P&gt;&lt;P&gt;How do you determine whether the 1) pre mean for all 4 cohorts values are significantly different (Test &amp;nbsp;whether &amp;nbsp;pre lsMean &amp;nbsp;in cohort1= pre lsMean &amp;nbsp;in cohort 2= pre lsMean &amp;nbsp;in cohort 3 = pre lsMean &amp;nbsp;cohort 4), post lsmean values&amp;nbsp; for all cohorts are significantly different &amp;nbsp;(Test&amp;nbsp; whether &amp;nbsp;post lsMean&amp;nbsp; in cohort1= post lsMean&amp;nbsp; in cohort 2= post lsMean&amp;nbsp; in cohort 3 = post lsMean&amp;nbsp; cohort 4and the overall differences between co pre vs post for each level of cohort&amp;nbsp; (Test &amp;nbsp;whether Mean diff &amp;nbsp;in cohort1=mean difference in cohort 2=mean difference in cohort 3 =mean difference cohort 4 )&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2016 18:29:44 GMT</pubDate>
    <dc:creator>Sasuser250</dc:creator>
    <dc:date>2016-01-22T18:29:44Z</dc:date>
    <item>
      <title>Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90916#M25952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using proc genmod to compare differences in cost between surgical operations that took place hospitals before and after they were enrolled in an intervention program designed to reduce costs. I have 5 years of data (each year, more hospitals joined the program, but once a hospital joined, none left). I hypothesize that hospitals that joined in the first year had the most time to receive the beneficial cost-reducing effects of the program, whereas hospitals that joined in the last year did not have much time and maybe wouldn't experience much (or any) cost reduction. So I would like to compare pre/post costs separately for each of the 5 years. I've also clustered on hospital because I figured those data are correlated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=allthree order=formatted; class&amp;nbsp; hospital/ desc param=ref;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;model cost=prepost cohort covariate1 covariate2/link=log dist=gamma; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; repeated subject=hospital/type=ind;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;estimate 'Pre, 2006 Cohort' intercept 1 ;&lt;/P&gt;&lt;P&gt;estimate 'Post, 2006 Cohort' intercept 1 prepost 1 ;&lt;/P&gt;&lt;P&gt;estimate 'Pre, 2007 Cohort' intercept 1 cohort 0 0 0 1 ;&lt;/P&gt;&lt;P&gt;estimate 'Post, 2007 Cohort' intercept 1 prepost 1 cohort 0 0 0 1 ;&lt;/P&gt;&lt;P&gt;estimate 'Pre, 2008 Cohort' intercept 1 cohort 0 0 1 0 ;&lt;/P&gt;&lt;P&gt;estimate 'Post, 2008 Cohort' intercept 1 prepost 1 cohort 0 0 1 0 ;&lt;/P&gt;&lt;P&gt;estimate 'Pre, 2009 Cohort' intercept 1 cohort 0 1 0 0 ;&lt;/P&gt;&lt;P&gt;estimate 'Post, 2009 Cohort' intercept 1 prepost 1 cohort 0 1 0 0 ;&lt;/P&gt;&lt;P&gt;estimate 'Pre, 2010 Cohort' intercept 1 cohort 1 0 0 0 ;&lt;/P&gt;&lt;P&gt;estimate 'Post, 2010 Cohort' intercept 1 prepost 1 cohort 1 0 0 0 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prepost=1 if the procedure took place after the hospital joined the program and 0 if it took place before&lt;/P&gt;&lt;P&gt;cohort=0-4. 0 if they joined the first year, 1 if they joined the second year, etc.&lt;/P&gt;&lt;P&gt;I used the estimate statements to get (I think) the mean pre/post costs within each cohort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to determine whether the pre/post differences in cost were significantly different from each other, within each value of "cohort"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 00:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90916#M25952</guid>
      <dc:creator>Lefty</dc:creator>
      <dc:date>2012-12-05T00:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90917#M25953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First thing I noticed is that there is no interaction term in the model for cohort by prepost.&amp;nbsp; As a result, your estimates (and lsmeans, which I'll get to later) will reflect exactly the same difference between pre and post for every cohort.&amp;nbsp; I don't think this what you want.&amp;nbsp; Give the following a try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=allthree order=formatted;&lt;/P&gt;&lt;P&gt; class&amp;nbsp; hospital prepost cohort/ desc param=ref;&lt;/P&gt;&lt;P&gt; model cost=prepost cohort prepost*cohortcovariate1 covariate2/link=log dist=gamma; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; repeated subject=hospital/type=ind;&lt;/P&gt;&lt;P&gt;lsmeans prepost cohort prepost*cohort/ilink diff;&lt;/P&gt;&lt;P&gt;slice prepost*cohort/nof ilink sliceby=cohort diff; /* This will give a test of pre vs post for each level of cohort */&lt;/P&gt;&lt;P&gt;run;&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, 05 Dec 2012 13:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90917#M25953</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-12-05T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90918#M25954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much, Steve, that worked perfectly except I had to change the param=ref to param=glm (otherwise i got an error). Also, the slice command was red in my editor, but I ran it anyway and it worked without any error messages in the log, so I assume all is well. Thank you so much, I really appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 19:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90918#M25954</guid>
      <dc:creator>Lefty</dc:creator>
      <dc:date>2012-12-05T19:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90919#M25955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After quickly reading this topic, I think my problem/question is very similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data of a cohort study with 4 rounds. In these 4 rounds, we asked respondents about smoking. We plotted the prevalence of smoking in different age groups, defined by their age at baseline. The link below shows an example of the analysis I want to do. The time between rounds is 5 years. So, if you have a group aged 40-49 (mean 45) at baseline (round 1), in round 3 (10 years later) this group will be aged 50-59 (mean 55). The prevalence of smoking in this group can be compared to the prevalence of the group aged 50-59 (mean 55) at &lt;SPAN style="text-decoration: underline;"&gt;baseline&lt;/SPAN&gt;. Basically what I then want to say is: a younger generation (40-49) smokes less at mean age 55 then a older generation (50-59) at mean age 55. The link below shows an example (it's a link to a figure). It shows in this example that the 40-49 generation smokes 9% less at age 55.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://img35.imageshack.us/img35/2451/exampleej.jpg" title="http://img35.imageshack.us/img35/2451/exampleej.jpg"&gt;http://img35.imageshack.us/img35/2451/exampleej.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to model these lines, a statistician advised us to use proc glimmix. The model I used is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc glimmix data=dataname initglm&amp;nbsp; method=quad;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model smoking(event="1") = dum60 dum70 dum80&amp;nbsp; age age*dum60 age*dum70 age*dum80 / dist=binary link=logit cl covb s;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; random intercept age / subject=id;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;by sex;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;run; quit;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dum60 = generation aged 60-69 at baseline&lt;/P&gt;&lt;P&gt;dum70 = generation aged 70-79 at baseline&lt;/P&gt;&lt;P&gt;dum80 = generation aged 80-89 at baseline&lt;/P&gt;&lt;P&gt;dum50 is the reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to use estimate statements in order to test what I described above (in the figure). What is the difference between two generation at a predefined age? And is this difference significant?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to estimate the difference between the generation 60-69 at age 70 with the generation 70-79 at age 70 with these statements (based on the advice of the statistician):&lt;/P&gt;&lt;P&gt;estimate dum60 1 dum70 -1 age*dum60 70 age*dum70 -70 / cl; (difference between the two lines)&lt;/P&gt;&lt;P&gt;estimate dum60 1 intercept 1 age 70 age*dum60 70 / ilink cl; (prevalence of 60-69 group at age 70)&lt;/P&gt;&lt;P&gt;estimate dum70 1 intercept 1 age 70 age*dum70 70 / ilink cl; (prevalence of 60-69 group at age 70)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first statement should tell me if the difference is significant. The second and third statements should tell me the prevalences of the two groups at age 70. We used ilink to show us these prevalences (we want to present the differences + significance in a bar chart). The weird thing is, the prevalences as shown by ilink do not correspond with the prevalences we find in the raw data. They do not look similar at all! ilink gives me prevalences of 1E-7 etc, while 'real' prevalences based on the raw data are around 25% and 20% for those generations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the right method to test what I want to test, which is: the magnitude of the differences between two generations and whether this difference is significant.&lt;/P&gt;&lt;P&gt;If not, how can it be done else within the glimmix procedure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to my original topic, with a few other problems too: &lt;A __default_attr="39333" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you guys can help me. Thnx in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Dec 2012 00:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90919#M25955</guid>
      <dc:creator>zemastear</dc:creator>
      <dc:date>2012-12-09T00:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90920#M25956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While I applaud the method to get the comparisons of interest, I can see where the problem might arise.&amp;nbsp; The assumption of a linear response with age may be what is causing the problem.&amp;nbsp; I see that you have the s option set in the model statement.&amp;nbsp; What are the coefficients for the various terms?&amp;nbsp; With those in hand, we might be able to work out what is going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also wonder if the problem may be coming from the inclusion of age as a random effect--and that it is dominating the fixed effect.&amp;nbsp; You may have to change the estimate statement from the BLUE form it is in to a BLUP form that includes the random effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 13:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90920#M25956</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-12-10T13:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90921#M25957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a very similar question, though I think mine is much simpler. I am analyzing some pre-post test data wherein the IV and DV are both binary. I am interested in testing the hypothesis that the post-test scores have changed significantly since an intervention that occurred between the pre test and the post test. For the univariate case, I have used the McNemar test, and this is straight-forward. However, I'm unsure how best to control for a covariate (or two). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen some examples where a GEE approach is used with several follow-up assessment (proc genmod is the appropriate command). However, I only have one follow-up time. I just want to get adjusted odds ratios for my pre-post test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to go about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;John Peipert&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 21:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90921#M25957</guid>
      <dc:creator>jpeipert</dc:creator>
      <dc:date>2013-02-25T21:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90922#M25958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the code that I gave above fit your situation?&amp;nbsp; Of course, changes in distribution, etc. would have to be made to get to the oddsratio.&amp;nbsp; Maybe something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc genmod ;&lt;/P&gt;&lt;P&gt;class&amp;nbsp; dv iv prepost bubjid/ desc param=ref;&lt;/P&gt;&lt;P&gt;model dv= iv prepost iv*prepost/dist=binary; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; repeated subject=subjid/type=ind;&lt;/P&gt;&lt;P&gt;lsmeans iv prepost iv*prepost/ilink oddsratio&lt;/P&gt;&lt;P&gt;slice iv*prepost/sliceby=iv oddsratiof; /* This will give a test of pre vs post for each level of iv */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 12:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90922#M25958</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-02-26T12:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90923#M25959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Steve. Is the variable "prepost" in your analysis the difference between the pre and post scores? My variables are dichotomous, so the pre value is either 1 or 0 and the post value is either 1 or 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, I have tried to write code that I hope accomplishes something similar to what you've suggested. Conceiving of this as a test of the difference in the change from pre to post (one sample) within groups of another variable (level 1 and level 2), I have used a gee equation that essentially models this problem as if the variable measured at pre and post was a longitudinal outcome, and looked at differences in this outcome over time within groups of my covariate (two levels, 1 and 0). I indicated the pre and post values of this variable using a time variable (1=pre, 2=post). (See the code below.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the time variable is significant, then I know that there was a difference from pre to post (I think I'm calculating the odds ratios comparing post to pre), and if the interaction term is significant I know that the change from pre to post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this accomplish something similar the code you wrote, or to what I've described above for that matter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Devin Peipert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code: &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;PROC &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;GENMOD&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;descending&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;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;CLASS &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;subjid covariate(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;ref&lt;/SPAN&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: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;"0"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;) time(&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;ref&lt;/SPAN&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: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;"1"&lt;/SPAN&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;PARAM&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=effect;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;MODEL &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;outcome = covariate time covariate*time&lt;/SPAN&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;type3&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=logit;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;REPEATED &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;subjid &lt;/SPAN&gt;/ &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=un;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'Beta'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; covariate &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;/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;/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;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'Beta'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; time &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;/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;/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;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;estimate&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;'Beta'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; covariate*time &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;/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;/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;/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; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 20:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90923#M25959</guid>
      <dc:creator>jpeipert</dc:creator>
      <dc:date>2013-02-27T20:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90924#M25960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code looks good.&amp;nbsp; My 'prepost' variable is exactly equivalent to your 'time' - an indicator (class) variable representing the period at which things were measured.&amp;nbsp; One thing I would change are the labels for the estimate statements, so that if you output them to a dataset, you could find which estimate was associated with which comparison.&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, 28 Feb 2013 12:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90924#M25960</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-02-28T12:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90925#M25961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Steve! All your feedback has been really helpful to me figuring this out for a first go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 15:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90925#M25961</guid>
      <dc:creator>jpeipert</dc:creator>
      <dc:date>2013-02-28T15:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90926#M25962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually have one more question about the use of proc genmod in a slightly different scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to model the effect of some variables measured at a baseline assessment on a serial outcome measured in subsequent years (but, notably, not at the baseline assessment). I'm wondering how appropriate the code I have below would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, the data set-up is as follows, with id representing unique subjects, year representing the time,outcome representing a dichotomous outcome measure, bl_var1 representing a dichotomous predictor variable, and bl_var2 representing a second dichotomous predictor variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outcome&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bl_var1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bl_var2&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2009&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; 1&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; 0&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&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; 1&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; 0&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&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; 1&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; 0&amp;nbsp; &lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2009&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; 0&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; 1&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&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; 0&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; 1 &lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&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; 0&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; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The values for bl_var1 and bl_var2 are equal because the year 2009 - or baseline - measurement is the only measurement for these that exists. It has been assigned to the subsequent years as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I want to model the impact of the baseline characteristics on the outcome measured in 2010 and 2011. I don't want to run separate models for 2010 and 2011 because I assume that the values for the outcome for these years are correlated on subjects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'm using the code below.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; have specified the autoregressive working correlation matrix because it is a serial measurement of the same outcome.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;PROC&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;STRONG style="line-height: 1.5em; color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;GENMOD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'Courier New'; color: blue; background-color: white;"&gt;descending&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'Courier New'; color: black; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; YEAR NE &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;2009&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; id bl_var1(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;) bl_var2 (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"0"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;) year (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"2010"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;PARAM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;= effect;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;MODEL&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; outcome = bl_var1 bl_var2 year&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&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; / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;type3&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;dist&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=binomial &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;link&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=logit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;REPEATED&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;subject&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=provnum / &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=ar(&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;corrw&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;estimate&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'&lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;bl_var1&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;bl_var1&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; -&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;exp&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;estimate&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'&lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;bl_var2&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;bl_var2&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; -&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;exp&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;estimate&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'&lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;year&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; year &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; -&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;/ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;exp&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need an interaction between my baseline measures and year to see within subjects effects? E.g. would I want to add the following?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;bl_var1*year &lt;SPAN style="color: #000000; font-family: 'Courier New'; background-color: #ffffff;"&gt;bl_var&lt;/SPAN&gt;2*year&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;If so, would these be interpreted as a change in the baseline value being associated with a change in the outcome from 2010 to 2011?&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Thanks again for your help.&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Devin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 23:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90926#M25962</guid>
      <dc:creator>jpeipert</dc:creator>
      <dc:date>2013-03-14T23:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90927#M25963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;)I hope you have a lot of data.&amp;nbsp; Binomial covariates and response variables inevitably lead to a need for large sample sizes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On to the problem at hand--I might proceed as per Littell et al. (SAS for Mixed Models, 2nd. ed.) do in their chapter on analysis of covariance, if I had more years of data, and treated year as a continuous covariate.&amp;nbsp; First, fit a model with separate slopes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;model outcome=b1_var1 b1_var2 year year*b1_var1 year*b1_var2....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and look at the test for the interactions.&amp;nbsp; None of the other tests are really meaningful at this point.&amp;nbsp; If these are non-significant, then you probably do not need the interactions to fit your results.&amp;nbsp; If they are significant, then you will probably need to compare at various values of the continuous covariate (year).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you only have two years of data, it makes no difference whether you consider year as a continuous or class variable--you don't have a range of values to choose from (this is the model you present).&amp;nbsp; The year by baseline interactions are relatively straightforward in this limited context.&amp;nbsp; I think your suggested inclusion of the interactions in the model will yield interpretable results of the sort you are after&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steve Denham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steve Denham (just kept thinking about this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 11:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90927#M25963</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-03-15T11:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90928#M25964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As usual, thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you say, i may run into power issues given the data. Those aside - given that I only have two years of data for my outcome measure, and that I'm strictly looking at the impact of baseline characteristics (taken the year preceding the first year of data for the outcome) on a serial outcome for two years, my concern was about whether or not the interactions would be meaningful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I wrote, I was thinking they may give me the effect of the baseline characteristics (yes or no) on whether the outcome changes between the two years of data I have for it. If I'm reading you correctly, it sounds like this is a fair interpretation of those terms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, thanks for your time and consideration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Devin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 14:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/90928#M25964</guid>
      <dc:creator>jpeipert</dc:creator>
      <dc:date>2013-03-15T14:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc genmod: testing the significance of the difference between groups</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/245513#M56169</link>
      <description>&lt;P&gt;proc genmod data=allthree order=formatted;&lt;/P&gt;&lt;P&gt;class hospital prepost cohort/ desc param=ref;&lt;/P&gt;&lt;P&gt;model cost=prepost cohort prepost*cohort covariate1 covariate2/link=log dist=gamma;&lt;/P&gt;&lt;P&gt;&amp;nbsp;repeated subject=hospital/type=ind;&lt;/P&gt;&lt;P&gt;lsmeans prepost cohort prepost*cohort/ilink diff;&lt;/P&gt;&lt;P&gt;slice prepost*cohort/nof ilink sliceby=cohort diff; /* This will give a test of pre vs post for each level of cohort */ run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the code above,&lt;/P&gt;&lt;P&gt;How do you determine whether the 1) pre mean for all 4 cohorts values are significantly different (Test &amp;nbsp;whether &amp;nbsp;pre lsMean &amp;nbsp;in cohort1= pre lsMean &amp;nbsp;in cohort 2= pre lsMean &amp;nbsp;in cohort 3 = pre lsMean &amp;nbsp;cohort 4), post lsmean values&amp;nbsp; for all cohorts are significantly different &amp;nbsp;(Test&amp;nbsp; whether &amp;nbsp;post lsMean&amp;nbsp; in cohort1= post lsMean&amp;nbsp; in cohort 2= post lsMean&amp;nbsp; in cohort 3 = post lsMean&amp;nbsp; cohort 4and the overall differences between co pre vs post for each level of cohort&amp;nbsp; (Test &amp;nbsp;whether Mean diff &amp;nbsp;in cohort1=mean difference in cohort 2=mean difference in cohort 3 =mean difference cohort 4 )&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 18:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-genmod-testing-the-significance-of-the-difference-between/m-p/245513#M56169</guid>
      <dc:creator>Sasuser250</dc:creator>
      <dc:date>2016-01-22T18:29:44Z</dc:date>
    </item>
  </channel>
</rss>

