<?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 glm test trend over time across different exposure / stratified in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430636#M22632</link>
    <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;said&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;If year is a calendar year you probably want to get a years-since-treatment or years-of-treatment variable for the model.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get a trend, you would not make YEAR a CLASS variable.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2018 19:54:25 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-01-24T19:54:25Z</dc:date>
    <item>
      <title>proc glm test trend over time across different exposure / stratified</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430124#M22611</link>
      <description>&lt;P&gt;My patients enrolled in the program from the birth through their 60 months and&amp;nbsp;have received a treatment with various durations (no treatment, upto 3 mo, upto 6mo, upto 9mo, upto 12 mo and beyond 12mo). Now I'd like to assess the changes in trend of a disease rate among them over time where treatments durations is the exposure. I'd also like to stratify the analysis by race and age. And choose no treatment groups=0 as a reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;1. Using proc glm make sense here? am I on the right track at least?&lt;/P&gt;&lt;P&gt;2. How to define trt_types=0 as a reference group in the model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="...\support.csv"
out=data
dbms=csv replace;
run;

proc glm data=data;
class trt_types year;
model rate=trt_types year race age/solution;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 20:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430124#M22611</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-24T20:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm test trend over time across different exposure / stratified</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430516#M22626</link>
      <description>&lt;P&gt;I think you may be looking for&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt; trt_types ref='0'&amp;nbsp;&lt;SPAN class="token function"&gt;year&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;if the variable has a format assigned then the ref='value' has to be the FORMATTED value&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;I'm not sure that you want year as a class variable though if your test for trend is anything such as the slope the line (parameter for year) assuming year is an interval&amp;nbsp; (years since treatment) and not calendar year. If year is a calendar year you probably want to get a years-since-treatment or years-of-treatment variable for the model.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 16:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430516#M22626</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-24T16:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm test trend over time across different exposure / stratified</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430526#M22627</link>
      <description>&lt;P&gt;Using GLM assumes that the response variable errors are normally distributed. If they are not, you either have to do some transformation to make the errors normally distributed, or use something like PROC GLIMMIX.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 16:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430526#M22627</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-24T16:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm test trend over time across different exposure / stratified</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430609#M22630</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Thank you so much for your precious time!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Subjects participated in the program from the birth through their 60 months. Majority of them have multiple measurements within each year and the only last measurement of each year was retained. ‘Year’ in my data is the year of birth which also means a cohort year. I created another derived variable "survey_yr" which is the year of measurement using (survey _yr=year+age). I don't know yet how to account for same kids' measurement information&amp;nbsp;found&amp;nbsp;across different&amp;nbsp;measurement years. I hope below image helps&amp;nbsp;what I'm trying to explain here. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;My research question is: what is the time trend in the&amp;nbsp;disease rate over time among subjects received different treatment exposure taking no-treatment group as a reference. I also stumbled&amp;nbsp;across age-year-cohort analysis method. But I was also wondering if I can do quick analysis using glm or glimmix as PaigeMiller suggested ignoring&amp;nbsp;the nature of repeated measurement and the effect of birth year. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;I'm sorry, if it's only&amp;nbsp;confusing! &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="year_survey_yr.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18085i921520D28F061AC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="year_survey_yr.png" alt="year_survey_yr.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430609#M22630</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-24T19:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm test trend over time across different exposure / stratified</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430623#M22631</link>
      <description>I realized that my original post reflects my rush to shortcut to do modeling for preliminary analysis and my second post as a response to your questions reflect my data story accurately. I love discussing with you guys. It helps a lot to understand what needs to be done.</description>
      <pubDate>Wed, 24 Jan 2018 19:42:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430623#M22631</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-24T19:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm test trend over time across different exposure / stratified</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430636#M22632</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;said&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;If year is a calendar year you probably want to get a years-since-treatment or years-of-treatment variable for the model.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get a trend, you would not make YEAR a CLASS variable.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 19:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430636#M22632</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-24T19:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc glm test trend over time across different exposure / stratified</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430662#M22633</link>
      <description>Would you agree that "years of treatment" variable tells the same story as my trt_types variable? Subjects had received the same treatment but with varying durations where trt_types0=no treatment, trt_types1=treatment continued up to 3 months, trt_types2=up to 6 months, trt_types3=up to 9 months, trt_types4=up to 12 months, trt_types5=longer than 12 months.</description>
      <pubDate>Wed, 24 Jan 2018 20:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-glm-test-trend-over-time-across-different-exposure/m-p/430662#M22633</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-24T20:18:26Z</dc:date>
    </item>
  </channel>
</rss>

