<?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 Two part model for health care costs in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/294472#M15690</link>
    <description>&lt;P&gt;Can anyone provide or direct me to SAS code for two part models in GLM. &amp;nbsp;I am analyzing cost differences between patients who have experienced a poisoning and those who have not. &amp;nbsp;There are lots of zeroes in the data and it is skewed. From what I've read, the first part of the model would be a logistic regression and the second would be a regression with a gamma distribution and log link. &amp;nbsp;I am especially interested in how to&amp;nbsp;combine the results of the two regressions to develop estimates of cost differences between the two groups.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2016 16:59:33 GMT</pubDate>
    <dc:creator>nvcarroll54</dc:creator>
    <dc:date>2016-08-26T16:59:33Z</dc:date>
    <item>
      <title>Two part model for health care costs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/294472#M15690</link>
      <description>&lt;P&gt;Can anyone provide or direct me to SAS code for two part models in GLM. &amp;nbsp;I am analyzing cost differences between patients who have experienced a poisoning and those who have not. &amp;nbsp;There are lots of zeroes in the data and it is skewed. From what I've read, the first part of the model would be a logistic regression and the second would be a regression with a gamma distribution and log link. &amp;nbsp;I am especially interested in how to&amp;nbsp;combine the results of the two regressions to develop estimates of cost differences between the two groups.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 16:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/294472#M15690</guid>
      <dc:creator>nvcarroll54</dc:creator>
      <dc:date>2016-08-26T16:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Two part model for health care costs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/294522#M15691</link>
      <description>&lt;P&gt;To get you started see the papers at Lexjansen.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://lexjansen.com/search/searchresults.php?q=two%20stage%20model" target="_blank"&gt;http://lexjansen.com/search/searchresults.php?q=two%20stage%20model&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI - This is a good place to start research on any SAS topic &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 20:24:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/294522#M15691</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-26T20:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Two part model for health care costs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/294820#M15711</link>
      <description>&lt;P&gt;Try using PROC FMM:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your SAS code should look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc fmm data=rowdata;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; model&amp;nbsp;response = age income avgexp / dist=binary;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; model&amp;nbsp;response = age income avgexp / dist=gamma;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; model&amp;nbsp;response = / dist=constant;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The last&amp;nbsp;MODEL statement specifies a constant distribution with all mass at zero for the zero target&amp;nbsp;group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To understand PROC FMM and finite mixture models take a look at:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SGF paper: &lt;A href="https://support.sas.com/resources/papers/proceedings12/328-2012.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings12/328-2012.pdf&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;PROC FMM documentation: &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_fmm_syntax09.htm#statug.fmm.modeldist" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_fmm_syntax09.htm#statug.fmm.modeldist&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Funda&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 13:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/294820#M15711</guid>
      <dc:creator>Funda_SAS</dc:creator>
      <dc:date>2016-08-29T13:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Two part model for health care costs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/373703#M19556</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;nvcarroll54, were you able to find the code for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 15:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/373703#M19556</guid>
      <dc:creator>sasuser2017</dc:creator>
      <dc:date>2017-07-06T15:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Two part model for health care costs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/373706#M19559</link>
      <description>Nothing simple enough for me to understand and use&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 06 Jul 2017 15:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/373706#M19559</guid>
      <dc:creator>nvcarroll54</dc:creator>
      <dc:date>2017-07-06T15:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Two part model for health care costs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/373708#M19561</link>
      <description>&lt;P&gt;I know what you mean... i've been trying to figure this out for over a month now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turns out, it's way easier to do it in Stata, but my dataset is way to large for Stata to handle, so I've had to resort back to SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your dataset is not very large, try running this in Stata. You have to install command twopm, and it's literally just few lines of code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goodluck,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 16:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/373708#M19561</guid>
      <dc:creator>sasuser2017</dc:creator>
      <dc:date>2017-07-06T16:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Two part model for health care costs</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/409839#M21397</link>
      <description>&lt;P&gt;So I have a flag for claims &amp;gt; 0 (CLAIM_PRE) and a continuous variable for claims (MEDRX_PRE). It would seem that in a two part model the first modle would be predicting CLAIM_PRE (the separate process for 1'sand 0's) and the next model statement for the positive claims. I am not sure how to set this up in the FMM framework. When I enter the following I get lots of errors about conflicting outcome/model statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FMM DATA=WORK.HC_MBR_ANLY_23OCT17;&lt;BR /&gt; MODEL MEDRX_PRE = ACTIV_PARTICIP / DIST=BINARY;&lt;BR /&gt; MODEL MEDRX_PRE = ACTIV_PARTICIP / DIST=GAMMA;&lt;BR /&gt; MODEL CLAIM_PRE = / DIST=CONSTANT; &lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should the data be structured in some way or the PROC specified so that FMM can handle both the binary model to predict occurance of claims and the conditonal on positive gamma model? &amp;nbsp;I don't see how the same response variable can be used in each model statement if the entire purpose of two part models is to model two different responses?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 14:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Two-part-model-for-health-care-costs/m-p/409839#M21397</guid>
      <dc:creator>SlutskyFan</dc:creator>
      <dc:date>2017-11-02T14:31:08Z</dc:date>
    </item>
  </channel>
</rss>

