<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PROC GLM - repeated measures - coefficient estimates for continuous variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103742#M5482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;s&lt;BR /&gt;When using the PROC GLM for repeated measures, how can I assess the effect of the different factors in the model, including continuous variables. Especifically, there are some significant factors in the univariate ANOVA (interaction across time), but I don't know how to tease out the way the interaction works. I tried "solution" option in the model statement, but it does not come out.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jun 2013 10:30:26 GMT</pubDate>
    <dc:creator>elaineb</dc:creator>
    <dc:date>2013-06-12T10:30:26Z</dc:date>
    <item>
      <title>PROC GLM - repeated measures - coefficient estimates for continuous variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103742#M5482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;s&lt;BR /&gt;When using the PROC GLM for repeated measures, how can I assess the effect of the different factors in the model, including continuous variables. Especifically, there are some significant factors in the univariate ANOVA (interaction across time), but I don't know how to tease out the way the interaction works. I tried "solution" option in the model statement, but it does not come out.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 10:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103742#M5482</guid>
      <dc:creator>elaineb</dc:creator>
      <dc:date>2013-06-12T10:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM - repeated measures - coefficient estimates for continuous variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103743#M5483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say, "it does not come out" with the solution option, what do you mean?&amp;nbsp; Are the estimates not printing, or do they print, but seem unreasonable?&amp;nbsp; If it's the first, then there is probably something we can address in the syntax, but if it is the second, we will need some context.&amp;nbsp; Sharing your GLM code and the study design would be a good starting point.&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, 12 Jun 2013 12:14:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103743#M5483</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-06-12T12:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM - repeated measures - coefficient estimates for continuous variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103744#M5484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Steve. Only the ANOVA tables are printed, not the coefficient estimates for each variable in the model. I have longitudinal study with children length measurements at 6, 9, 12, 18 and 24 months (about 200 chidren). I want to assess the association between growth and some variables like parental height, duration of breastfeeding (in months), mother's education (categorical), and others. My code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GLM; data=temp;&lt;/P&gt;&lt;P&gt;class sex medu;&lt;/P&gt;&lt;P&gt;model len6 len9 len12 len18 len24 = sex birthwei medu durbf / &lt;STRONG&gt;solution&lt;/STRONG&gt; nouni;&lt;/P&gt;&lt;P&gt;repeated lenage 5 (6 9 12 18 24) polynomial / summary printe;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the between and within SS's but I would like to see how the significant variables in the model (betwen and/or within) are associated with growth, in which way. for example, I have that duration of breastfeeding is associated with the shape od the growth curve (within subjects ANOVA), but can't tell how... Is there a way of getting this information, please?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 12:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103744#M5484</guid>
      <dc:creator>elaineb</dc:creator>
      <dc:date>2013-06-12T12:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM - repeated measures - coefficient estimates for continuous variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103745#M5485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I must admit I am stuck as far as getting the parameters.&amp;nbsp; You might try removing the nouni option, in which case you would get the parameters for each time point.&amp;nbsp; However...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really recommend changing the analysis to PROC MIXED.&amp;nbsp; It does a much better job of handling repeated measures than does GLM.&amp;nbsp; First I would transform the data into long form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data long;&lt;/P&gt;&lt;P&gt;set temp;&lt;/P&gt;&lt;P&gt;length=len6;time=6;output;&lt;/P&gt;&lt;P&gt;length=len9;time=9;output;&lt;/P&gt;&lt;P&gt;length=len12;time=12;output;&lt;/P&gt;&lt;P&gt;length=len18;time=18;output;&lt;/P&gt;&lt;P&gt;length=len24;time=24;output;&lt;/P&gt;&lt;P&gt;drop len6 len9 len12 len18 len24;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data long;&lt;/P&gt;&lt;P&gt;set long;&lt;/P&gt;&lt;P&gt;timer=time; /* Sets an identical value that will be used as a continuous variable in PROC MIXED&amp;nbsp; */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PROC MIXED code would then look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed data=long;&lt;/P&gt;&lt;P&gt;class sex medu time subjid; /* This assumes that each child has a unique ID already on the original temp dataset&amp;nbsp; */&lt;/P&gt;&lt;P&gt;model length=sex|medu|time birthwei durbf/solution ddfm=kr(firstorder); /* See below for comments on this model */&lt;/P&gt;&lt;P&gt;repeated time/type= sp(pow)(timer) subject=subjid;&lt;/P&gt;&lt;P&gt;random intercept/subject=subjid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The model statement looks at separate trajectories in time for all sex by medu combinations.&amp;nbsp; Later on, you can construct LSMESTIMATE statements to test hypotheses of interest.&amp;nbsp; Birthweight and duration of breastfeeding are fit as continous covariates.&amp;nbsp; Marginal means would be at the mean values of each of these covariates (LSMEANS statement not included);&amp;nbsp; The ddfm=kr(firstorder) applies the Kenward-Rogers correction to the standard errors and to degrees of freedom.&amp;nbsp; It should be standard for small to moderate sized datasets (less than 10,000 subjects).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The F tests will address differences between marginal means and whether continuous covariates differ from zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as the repeated and random statements: I chose the spatial power estimate because of the uneven spacing in time of the measurements.&amp;nbsp; This models the correlation between measures as a power function dependent on the length of time between measurements.&amp;nbsp; This correlation is the key difference in approaches between GLM and MIXED.&amp;nbsp; The GLM approach assumes sphericity/independence of repeated measures, and that is definitely not the case for growth curves.&amp;nbsp; For example, look at Example 59.2 Repeated Measures in the MIXED documentation, where Pothoff and Roy's classic growth measurements dataset is examined.&amp;nbsp; There are very extensive examples here, almost all of which could pertain to your dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an aside, I include the random intercept statement, as this removes subject to subject variability as a separate source of variation, leaving the residual variability to be modeled as a correlated growth curve.&amp;nbsp; This may be omitted, but has shown to be of value in modeling repeated measurements with autoregressive type errors (see Littell, Henry and Ammerman, J. Anim Sci. 1998, 76:1216-1231).&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;/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>Wed, 12 Jun 2013 15:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103745#M5485</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-06-12T15:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM - repeated measures - coefficient estimates for continuous variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103746#M5486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, Steve. I have used PROC MIXED with another kind of data. I tried with this present dataset but it did not give me the answers either.&lt;/P&gt;&lt;P&gt;But I will try now to use for this data the options and covariance structure you are suggesting.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Elaine&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 07:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-coefficient-estimates-for-continuous/m-p/103746#M5486</guid>
      <dc:creator>elaineb</dc:creator>
      <dc:date>2013-06-13T07:37:24Z</dc:date>
    </item>
  </channel>
</rss>

