<?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 Assistance needed in model selection for retrospective chart-review study in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Assistance-needed-in-model-selection-for-retrospective-chart/m-p/93412#M4601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your time, as I am new to SAS, but really enjoying learning more about it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The retrospective chart-review has 4 dependent variables, and these dependent variables are based on certain set of criteria, respectively.&lt;/P&gt;&lt;P&gt;1) Eligible for bariatric (Based upon patients BMI and number of comorbidities)&lt;/P&gt;&lt;P&gt;2) Eligible for exercise prescription (Based upon a multitude of biologic variables)&lt;/P&gt;&lt;P&gt;3) Eligible for bariatric surgery and exercise prescription (Based upon the combination of the two listed above)&lt;/P&gt;&lt;P&gt;4) Non Eligible for any intervention (Does not meet any of the baseline criteria variables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a random sample of 500 patient records, I will have access to the independent variables that determine the outcome group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 1: How do I code the outcome variables so SAS knows which group to place the patients based on their independent variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 2: How do I categorize the 500 patients into an outcome group based upon the independent variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 3: How do I get data from this model that outputs counts and percentages?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thank you for your time and I appreciate the help any of you may be so generous to give.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Greg &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2012 05:38:19 GMT</pubDate>
    <dc:creator>GregBond</dc:creator>
    <dc:date>2012-12-07T05:38:19Z</dc:date>
    <item>
      <title>Assistance needed in model selection for retrospective chart-review study</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Assistance-needed-in-model-selection-for-retrospective-chart/m-p/93412#M4601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your time, as I am new to SAS, but really enjoying learning more about it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The retrospective chart-review has 4 dependent variables, and these dependent variables are based on certain set of criteria, respectively.&lt;/P&gt;&lt;P&gt;1) Eligible for bariatric (Based upon patients BMI and number of comorbidities)&lt;/P&gt;&lt;P&gt;2) Eligible for exercise prescription (Based upon a multitude of biologic variables)&lt;/P&gt;&lt;P&gt;3) Eligible for bariatric surgery and exercise prescription (Based upon the combination of the two listed above)&lt;/P&gt;&lt;P&gt;4) Non Eligible for any intervention (Does not meet any of the baseline criteria variables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a random sample of 500 patient records, I will have access to the independent variables that determine the outcome group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 1: How do I code the outcome variables so SAS knows which group to place the patients based on their independent variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 2: How do I categorize the 500 patients into an outcome group based upon the independent variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 3: How do I get data from this model that outputs counts and percentages?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thank you for your time and I appreciate the help any of you may be so generous to give.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Greg &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 05:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Assistance-needed-in-model-selection-for-retrospective-chart/m-p/93412#M4601</guid>
      <dc:creator>GregBond</dc:creator>
      <dc:date>2012-12-07T05:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance needed in model selection for retrospective chart-review study</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Assistance-needed-in-model-selection-for-retrospective-chart/m-p/93413#M4602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Greg&lt;/P&gt;&lt;P&gt;Here are two alternatives:&lt;/P&gt;&lt;P&gt;1. If you have experience with SAS data steps, it can be done like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt; value eligiblefmt&lt;BR /&gt;&amp;nbsp; 1 = "Bariatric"&lt;BR /&gt;&amp;nbsp; 2 = "Exercise Prescription"&lt;BR /&gt;&amp;nbsp; 12 = "Bariatric and Exercise Prescription"&lt;BR /&gt;&amp;nbsp; 3 = "Non Eligible"&lt;BR /&gt; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data outcomes;&lt;BR /&gt; set sashelp.shoes;&lt;/P&gt;&lt;P&gt;if Product = "Boot" and 5 &amp;lt;= Stores &amp;lt;= 15 then if Region = "Canada" and Inventory &amp;gt; 50000 then&lt;BR /&gt;&amp;nbsp; eligibility = 12;&lt;BR /&gt; else eligibility = 1;&lt;BR /&gt; else if Region = "Canada" and Inventory &amp;gt; 50000 then&lt;BR /&gt;&amp;nbsp; eligibility = 2;&lt;BR /&gt; else eligibility = 3;&lt;BR /&gt; format eligibility eligiblefmt.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. On the other hand, if you like Proc SQL or are using Enterprise Guide, here's the equivalent:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt; value eligiblefmt&lt;BR /&gt;&amp;nbsp; 1 = "Bariatric"&lt;BR /&gt;&amp;nbsp; 2 = "Exercise Prescription"&lt;BR /&gt;&amp;nbsp; 12 = "Bariatric and Exercise Prescription"&lt;BR /&gt;&amp;nbsp; 3 = "Non Eligible"&lt;BR /&gt; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt; create table outcomes as&lt;BR /&gt;&amp;nbsp; select *,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; CASE&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN Product = "Boot" and Stores between 5 and 15&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN &lt;BR /&gt;&amp;nbsp;&amp;nbsp; CASE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN Region = "Canada" and Inventory &amp;gt; 50000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN 12&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ELSE 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; END&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ELSE &lt;BR /&gt;&amp;nbsp; CASE&lt;BR /&gt;&amp;nbsp;&amp;nbsp; WHEN Region = "Canada" and Inventory &amp;gt; 50000&lt;BR /&gt;&amp;nbsp;&amp;nbsp; THEN 2&lt;BR /&gt;&amp;nbsp; ELSE 3&lt;BR /&gt;&amp;nbsp; END&lt;BR /&gt;&amp;nbsp; END&lt;BR /&gt; as eligibility format=eligiblefmt.&lt;BR /&gt;&amp;nbsp; from sashelp.shoes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get some basic statistics, you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=outcomes;&lt;/P&gt;&lt;P&gt;tables eligibility;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 21:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Assistance-needed-in-model-selection-for-retrospective-chart/m-p/93413#M4602</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2012-12-10T21:59:27Z</dc:date>
    </item>
  </channel>
</rss>

