<?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: counting participants with measurements at several time points in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/counting-participants-with-measurements-at-several-time-points/m-p/678389#M204731</link>
    <description>&lt;P&gt;Hi Kurtbremser,&lt;/P&gt;&lt;P&gt;Thanks for you reply.&lt;/P&gt;&lt;P&gt;Does the attached file help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first part of the code worked to get me an overview of how many in each time point, but not how many who have continuous/complete data from all/part of timepoints.&lt;/P&gt;&lt;P&gt;the second part did not work on my dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 09:42:22 GMT</pubDate>
    <dc:creator>lone0708</dc:creator>
    <dc:date>2020-08-21T09:42:22Z</dc:date>
    <item>
      <title>counting participants with measurements at several time points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/counting-participants-with-measurements-at-several-time-points/m-p/678364#M204713</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Hope you can help me move on.&lt;/P&gt;&lt;P&gt;I am working with a dataset where people have measurements at predefined timepoints. Not all persons have measurements at all timepoints, and it is random which timepoints they appear in.&lt;/P&gt;&lt;P&gt;I want to count how many people have a measurement in timepoint 1,2,3 etc, but also combined so how many have measurements in 1 and 2 and 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used this code to get a nice overview of which timepoints they appear in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;report&lt;/STRONG&gt; &lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;=have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;columns&lt;/SPAN&gt;&amp;nbsp;id timepoint ;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;define&lt;/SPAN&gt;&amp;nbsp;id /&lt;SPAN&gt;group&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;define&lt;/SPAN&gt;&amp;nbsp;timepoint/ &lt;SPAN&gt;across&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My question is, is there a code to summarize the findings from the above? Especially the combined version with measurements in both 1 and 2 and 3 .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 08:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/counting-participants-with-measurements-at-several-time-points/m-p/678364#M204713</guid>
      <dc:creator>lone0708</dc:creator>
      <dc:date>2020-08-21T08:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: counting participants with measurements at several time points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/counting-participants-with-measurements-at-several-time-points/m-p/678385#M204728</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want1 as
  select
    timepoint,
    count(*) as count_per_timepoint
  from have
  group by timepoint
;
create table want2 as
  select
    count(*)
    from (
      select personid
      from have
      having count(*) = 3
    )
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Untested; please supply usable example data so we can test our code suggestions.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 09:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/counting-participants-with-measurements-at-several-time-points/m-p/678385#M204728</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-21T09:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: counting participants with measurements at several time points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/counting-participants-with-measurements-at-several-time-points/m-p/678389#M204731</link>
      <description>&lt;P&gt;Hi Kurtbremser,&lt;/P&gt;&lt;P&gt;Thanks for you reply.&lt;/P&gt;&lt;P&gt;Does the attached file help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first part of the code worked to get me an overview of how many in each time point, but not how many who have continuous/complete data from all/part of timepoints.&lt;/P&gt;&lt;P&gt;the second part did not work on my dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 09:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/counting-participants-with-measurements-at-several-time-points/m-p/678389#M204731</guid>
      <dc:creator>lone0708</dc:creator>
      <dc:date>2020-08-21T09:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: counting participants with measurements at several time points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/counting-participants-with-measurements-at-several-time-points/m-p/679106#M205059</link>
      <description>&lt;P&gt;"Usable example data": something I copy/paste to my program editor and submit, which then creates the dataset; usually a data step with datalines. Also show an example of the expected outcome from that particular input data.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 08:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/counting-participants-with-measurements-at-several-time-points/m-p/679106#M205059</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-25T08:12:30Z</dc:date>
    </item>
  </channel>
</rss>

