<?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 Help with longitudinal data - I have Cody's book, but I can't get what I need to work. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-longitudinal-data-I-have-Cody-s-book-but-I-can-t-get/m-p/478536#M123405</link>
    <description>&lt;P&gt;&lt;BR /&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;OL&gt;&lt;LI&gt;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;/LI&gt;&lt;LI&gt;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;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attachment did not go through (don't know why) but I copied several IDs with their values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for the variables not being in straight columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What kind of attachments am I allowed? I tried .doc&amp;nbsp; .lst&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kate &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jul 2018 02:41:27 GMT</pubDate>
    <dc:creator>katemcguckin</dc:creator>
    <dc:date>2018-07-17T02:41:27Z</dc:date>
    <item>
      <title>Help with longitudinal data - I have Cody's book, but I can't get what I need to work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-longitudinal-data-I-have-Cody-s-book-but-I-can-t-get/m-p/478536#M123405</link>
      <description>&lt;P&gt;&lt;BR /&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;OL&gt;&lt;LI&gt;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;/LI&gt;&lt;LI&gt;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;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attachment did not go through (don't know why) but I copied several IDs with their values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for the variables not being in straight columns.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What kind of attachments am I allowed? I tried .doc&amp;nbsp; .lst&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kate &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 02:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-longitudinal-data-I-have-Cody-s-book-but-I-can-t-get/m-p/478536#M123405</guid>
      <dc:creator>katemcguckin</dc:creator>
      <dc:date>2018-07-17T02:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help with longitudinal data - I have Cody's book, but I can't get what I need to work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-longitudinal-data-I-have-Cody-s-book-but-I-can-t-get/m-p/478556#M123412</link>
      <description>&lt;P&gt;Duplicate of&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Longitudinal-data-programming/m-p/478546" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Longitudinal-data-programming/m-p/478546&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Flagged as spam to remove duplicates.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 04:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-longitudinal-data-I-have-Cody-s-book-but-I-can-t-get/m-p/478556#M123412</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-07-17T04:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with longitudinal data - I have Cody's book, but I can't get what I need to work.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-longitudinal-data-I-have-Cody-s-book-but-I-can-t-get/m-p/478887#M123535</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; I figured it out and went to Cody's website and used his code! &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 02:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-longitudinal-data-I-have-Cody-s-book-but-I-can-t-get/m-p/478887#M123535</guid>
      <dc:creator>katemcguckin</dc:creator>
      <dc:date>2018-07-18T02:18:09Z</dc:date>
    </item>
  </channel>
</rss>

