<?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: Longitudinal data - programming in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Longitudinal-data-programming/m-p/478557#M123413</link>
    <description>&lt;P&gt;Please post some example data in the form of a data step to get a code answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have SAS/ETS? If so, moving averages are easily calculated with PROC EXPAND.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 04:54:14 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-07-17T04:54:14Z</dc:date>
    <item>
      <title>Longitudinal data - programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Longitudinal-data-programming/m-p/478546#M123409</link>
      <description>&lt;P&gt;* katemcguckin40@gmail.com;&lt;/P&gt;&lt;P&gt;Hi. I have 60 patients with varying number of patient visits for treatment.&lt;BR /&gt;The variable definitions are listed below.&lt;BR /&gt;This is a repeated measures study in which there are 1666 observations among the 60 patients.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also printed out just the first 6 patient data to keep it short.&lt;BR /&gt;My name is Kate. I am new to longitudinal analyses.&lt;/P&gt;&lt;P&gt;I hope someone can help me.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;* variables:&lt;BR /&gt;id = subject id&lt;BR /&gt;dob=date of birth&lt;BR /&gt;q_visitdate = visit date for therapy&lt;BR /&gt;visits = visit number&lt;BR /&gt;diff_bg= difference between pre and post-treatment blood sugar&lt;BR /&gt;q_pre_gluc = sugar level before treatment&lt;BR /&gt;q_post_gluc = sugar level after treatment&lt;BR /&gt;q_oxytime = time they spent in the treatment&lt;BR /&gt;q_oxyconcent = oxygen concentration for each treatment&lt;BR /&gt;visits= visit number&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What do I need to calculate?&lt;BR /&gt;1. Using the structure I have, I want to just get the mean of each person (id's)&lt;BR /&gt;(1) diff_bg (difference between pre- and post-treatment dugar levels) ,&lt;BR /&gt;(2) pre-gluc (pretreatment sugar level)&lt;BR /&gt;(3) post_gluc (post-treatment sugar level,&lt;BR /&gt;(4) q_oxytime&lt;BR /&gt;&lt;BR /&gt;So if I went through 20 treatments, I want the mean of those 4 variables in (1). I tried the lag&lt;BR /&gt;function,and it did not work.&lt;/P&gt;&lt;P&gt;2. Using the structure I have (see attachment), I want to calculate the number of months or days between treatments&lt;BR /&gt;(It's not set up in the datalines to follow Cody's book)&lt;/P&gt;&lt;P&gt;3. To describe the change in sugar level differences, would I need to use the moving average of each person for analyses?&lt;BR /&gt;Or what would I use?&lt;/P&gt;&lt;P&gt;Thank you. Kate.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 03:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Longitudinal-data-programming/m-p/478546#M123409</guid>
      <dc:creator>katemcguckin</dc:creator>
      <dc:date>2018-07-17T03:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal data - programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Longitudinal-data-programming/m-p/478547#M123410</link>
      <description>&lt;P&gt;It's Kate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured out how to get the means of each patient's variables that I wanted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want to calculate the time in days between visits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can help and if anyone is out there, please refer to the attachment on the first email.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, kindly.&amp;nbsp; Kate&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 03:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Longitudinal-data-programming/m-p/478547#M123410</guid>
      <dc:creator>katemcguckin</dc:creator>
      <dc:date>2018-07-17T03:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal data - programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Longitudinal-data-programming/m-p/478552#M123411</link>
      <description>&lt;P&gt;I figured out the times between treatments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone getting these ?s.... if so, let me know. Usually people respond. I have had no responses. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 04:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Longitudinal-data-programming/m-p/478552#M123411</guid>
      <dc:creator>katemcguckin</dc:creator>
      <dc:date>2018-07-17T04:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Longitudinal data - programming</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Longitudinal-data-programming/m-p/478557#M123413</link>
      <description>&lt;P&gt;Please post some example data in the form of a data step to get a code answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have SAS/ETS? If so, moving averages are easily calculated with PROC EXPAND.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 04:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Longitudinal-data-programming/m-p/478557#M123413</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-17T04:54:14Z</dc:date>
    </item>
  </channel>
</rss>

