<?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: Data Set Analysis- Setting thresholds for inclusion. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152187#M40025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After executing my code, the resulting observations are in dataset &lt;STRONG&gt;Participants&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;select * from participants;&lt;/STRONG&gt; statement can be removed as it is only there to provide a printed output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2014 18:20:02 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-10-31T18:20:02Z</dc:date>
    <item>
      <title>Data Set Analysis- Setting thresholds for inclusion.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152181#M40019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community! I am working with a new data set that has numerous entries for each participant. I want to set a threshold for inclusion such that 10 visits must be present&amp;nbsp; for a participant to be included in my new data set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After meeting this threshold of number of visits, I need to figure out how many participants met that visit number threshold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a .cvs file I converted from an excel file if that makes any difference&lt;/P&gt;&lt;P&gt;I tried PROC FREQ but couldn't figure out how to do anything with those results. Probably the completely wrong approach but I'm learning SAS on the job so cut me some slack!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any advice!&amp;nbsp; &lt;/P&gt;&lt;P&gt;Jackie E.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 16:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152181#M40019</guid>
      <dc:creator>JackieEvans85</dc:creator>
      <dc:date>2014-10-31T16:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Data Set Analysis- Setting thresholds for inclusion.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152182#M40020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Showing some data (even fake) would make things more concrete. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 16:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152182#M40020</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-10-31T16:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data Set Analysis- Setting thresholds for inclusion.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152183#M40021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically I need to work with only this column (sorry for the small amount of data, but it takes awhile to reblind the info) and the other columns don't matter for the analysis. I need to find if there are 10 entries for participant #1000 and if not, disregard the info for that participant. So on and so forth. So for this data, it would show that 1000 and 1001 both qualify but 1002 does not have enough entries.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 134px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="134"&gt;Participant&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1002&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jackie E.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 17:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152183#M40021</guid>
      <dc:creator>JackieEvans85</dc:creator>
      <dc:date>2014-10-31T17:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data Set Analysis- Setting thresholds for inclusion.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152184#M40022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SQL for this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data have;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input Participant;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;n = _n_;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1002&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1002&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1002&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1002&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1002&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1002&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;create table participants as&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select * from have&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group by participant&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;having count(*) &amp;gt;= 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;order by participant, n;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select * from participants;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 17:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152184#M40022</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-10-31T17:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data Set Analysis- Setting thresholds for inclusion.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152185#M40023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select * from have&lt;/P&gt;&lt;P&gt;where participant in (select participant from have group by participant&lt;/P&gt;&lt;P&gt;having count(*)&amp;gt;=10);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 17:24:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152185#M40023</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-10-31T17:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data Set Analysis- Setting thresholds for inclusion.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152186#M40024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for the responses! After spending my lunch break researching (not too successfully) SQL I am wondering how to manipulate the data after using an SQL statement(Both of your responses are the first I've seen of SQL in action). I am more familiar with using IF-THEN-DO statements to manipulate Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So after the SQL statement you provided, which does manipulate the data how I want it too, is there any way to an another step or give this SQL statement an output name for storing and manipulating further?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Jackie E.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 18:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152186#M40024</guid>
      <dc:creator>JackieEvans85</dc:creator>
      <dc:date>2014-10-31T18:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Set Analysis- Setting thresholds for inclusion.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152187#M40025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After executing my code, the resulting observations are in dataset &lt;STRONG&gt;Participants&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;select * from participants;&lt;/STRONG&gt; statement can be removed as it is only there to provide a printed output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 18:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Data-Set-Analysis-Setting-thresholds-for-inclusion/m-p/152187#M40025</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-10-31T18:20:02Z</dc:date>
    </item>
  </channel>
</rss>

