<?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: Checking How Many Participants have a certain number of visits in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797419#M39200</link>
    <description>&lt;P&gt;Well don't leave us in suspense. What happens to an ID that doesn't have Visit 3 but has 1, 2, 4, 5, 6? Is that the 1-6 category? Or do you want it to be categorized some other way?&lt;/P&gt;</description>
    <pubDate>Sat, 19 Feb 2022 21:01:28 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-02-19T21:01:28Z</dc:date>
    <item>
      <title>Checking How Many Participants have a certain number of visits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797368#M39194</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I want see how many individuals in my data set&amp;nbsp; have visits 1-7, how many have visits 1-8, and how many have visits 1-9. What would be an efficient way to go about doing this? Thank you all in advance for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 09:38:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797368#M39194</guid>
      <dc:creator>zaldarsa</dc:creator>
      <dc:date>2022-02-19T09:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Checking How Many Participants have a certain number of visits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797374#M39195</link>
      <description>&lt;P&gt;Can you show us a portion of your data so we can understand what the data looks like?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 11:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797374#M39195</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-19T11:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Checking How Many Participants have a certain number of visits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797396#M39196</link>
      <description>&lt;P&gt;Sure. So here is an example of what my data looks like, except my dataset has around 400 observations.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ID       Visit
1            1
1            2
1            3
2            1
3            1
3            2
3            3
3            4
3            5
3            6
3            7
4            1
4            2
4            3
5            1
5            2
5            3
5           4
5           5
5           6
5           7
5           8
6            1
6           2
6           3
6           4
6           5
6           6
6           7
6          8
6           9


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Feb 2022 17:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797396#M39196</guid>
      <dc:creator>zaldarsa</dc:creator>
      <dc:date>2022-02-19T17:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking How Many Participants have a certain number of visits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797399#M39197</link>
      <description>&lt;P&gt;Assuming your data is always consecutive you only need the last for each ID really.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*get maximum per ID;
proc sql;
create table id_max as
select id, max(visit) as max_visit from have;
quit;

*check distribution;
proc freq data=id_max;
table max_visit;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/257233"&gt;@zaldarsa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Sure. So here is an example of what my data looks like, except my dataset has around 400 observations.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ID       Visit
1            1
1            2
1            3
2            1
3            1
3            2
3            3
3            4
3            5
3            6
3            7
4            1
4            2
4            3
5            1
5            2
5            3
5           4
5           5
5           6
5           7
5           8
6            1
6           2
6           3
6           4
6           5
6           6
6           7
6          8
6           9


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 17:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797399#M39197</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-19T17:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Checking How Many Participants have a certain number of visits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797412#M39198</link>
      <description>&lt;P&gt;So is it valid to assume that the numbers in the VISIT column are always consecutive within an ID? That the numbers in the VISIT column never repeat or skip?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 20:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797412#M39198</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-19T20:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Checking How Many Participants have a certain number of visits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797418#M39199</link>
      <description>&lt;P&gt;They are in order, but i didn't double check my data, and it does indeed skip, but no repeat. For example, visit 3 may not be there for some people.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 20:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797418#M39199</guid>
      <dc:creator>zaldarsa</dc:creator>
      <dc:date>2022-02-19T20:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Checking How Many Participants have a certain number of visits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797419#M39200</link>
      <description>&lt;P&gt;Well don't leave us in suspense. What happens to an ID that doesn't have Visit 3 but has 1, 2, 4, 5, 6? Is that the 1-6 category? Or do you want it to be categorized some other way?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 21:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797419#M39200</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-19T21:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Checking How Many Participants have a certain number of visits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797424#M39201</link>
      <description>&lt;P&gt;I apologize for my lack of clarity. It would still be visit 1-6 regardless of what is missing in between, so I would still apply a similar code as if it were consecutive , in that case, correct?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 21:36:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797424#M39201</guid>
      <dc:creator>zaldarsa</dc:creator>
      <dc:date>2022-02-19T21:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Checking How Many Participants have a certain number of visits</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797426#M39202</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc summary data=have nway;
    class id;
    var visit;
    output out=stats max=max_visit;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Feb 2022 21:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Checking-How-Many-Participants-have-a-certain-number-of-visits/m-p/797426#M39202</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-02-19T21:43:13Z</dc:date>
    </item>
  </channel>
</rss>

