<?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 Data management in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Data-management/m-p/59275#M2747</link>
    <description>I have a variable that looks like this:&lt;BR /&gt;
&lt;BR /&gt;
Cohort&lt;BR /&gt;
----------&lt;BR /&gt;
3&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
4&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have three waves of data for each participant. I want to turn the 'cohort' variable into a 'time-invariant' variable. Is there syntax to make my variable 'cohort' look like this (I basically want to copy the first value for 'cohort' for each successive wave for each participant):&lt;BR /&gt;
&lt;BR /&gt;
Cohort&lt;BR /&gt;
---------&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
4&lt;BR /&gt;
4&lt;BR /&gt;
4</description>
    <pubDate>Mon, 02 Aug 2010 15:37:22 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-02T15:37:22Z</dc:date>
    <item>
      <title>Data management</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Data-management/m-p/59275#M2747</link>
      <description>I have a variable that looks like this:&lt;BR /&gt;
&lt;BR /&gt;
Cohort&lt;BR /&gt;
----------&lt;BR /&gt;
3&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
4&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have three waves of data for each participant. I want to turn the 'cohort' variable into a 'time-invariant' variable. Is there syntax to make my variable 'cohort' look like this (I basically want to copy the first value for 'cohort' for each successive wave for each participant):&lt;BR /&gt;
&lt;BR /&gt;
Cohort&lt;BR /&gt;
---------&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
3&lt;BR /&gt;
4&lt;BR /&gt;
4&lt;BR /&gt;
4</description>
      <pubDate>Mon, 02 Aug 2010 15:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Data-management/m-p/59275#M2747</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-02T15:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data management</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Data-management/m-p/59276#M2748</link>
      <description>Consider using the LAG function (or a RETAIN with a temporary SAS variable) in a DATA step; also, not really a Statistical Procedures related post, by the way.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 02 Aug 2010 16:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Data-management/m-p/59276#M2748</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-02T16:33:50Z</dc:date>
    </item>
  </channel>
</rss>

