<?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: Analyzing household wealth with three peaks in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-household-wealth-with-three-peaks/m-p/460519#M24049</link>
    <description>&lt;P&gt;Your syntax is wrong, so&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.3&amp;amp;docsetTarget=statug_fmm_syntax.htm&amp;amp;locale=en" target="_self"&gt; see the PROC FMM documentation for the syntax&lt;/A&gt;. You only want to name the response variable one time, then use the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MODEL + ...;&lt;/P&gt;
&lt;P&gt;syntax to add in the zero-inflated component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not an expert at PROC FMM but my advice would be to look into the PARTIAL= option on the PROC FMM statement. The idea is to first prepare the data by introducing a new categorical variable that identifies the component :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;z = abs(wealth_2006);
component = sign(wealth_2006);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then use that component to help FMM identify each component:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fmm data=xx partial=component;
class component;
model z = afqt high_ed ses / dist=logn k=2;
model +     / dist=constant; /* zero inflated */
run;    &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above is untested and I don't know&amp;nbsp;whether it will work. But I think creating an indicator variable and modeling z=abs(wealth_2004) is worth looking into.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 17:24:42 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2018-05-07T17:24:42Z</dc:date>
    <item>
      <title>Analyzing household wealth with three peaks</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-household-wealth-with-three-peaks/m-p/460354#M24040</link>
      <description>&lt;P&gt;I am analyzing a measure of household wealth. Its distribution is lognormal for positive values of wealth, lognormal for negative values of wealth (after taking the absolute value) and excess zeros.&amp;nbsp;About&amp;nbsp;15% of observations are zero or negative.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;I have tried transforming the variable using the inverse hyperbolic sine and cube root (which normalizes the distribution) but the problem with these transformations is that there is no simple way to interpret the coefficients since the interpretation of the effect of a covariate is dependent on the values of the other covariates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there were no negative values, the SAS Macro MIXCORR works very well, with a logit for&amp;nbsp;wealth ne&amp;nbsp;0, and lognormal for wealth gt 0. I have multiple observations per subject so the random effects model produced sensible and interpretable estimates. However, the negative values for wealth mean that MIXCORR is not appropriate. I could declare all negative values as zero but households with high negative wealth are much more like households with high positive values than households with zero or close to zero wealth.&amp;nbsp;Ignoring multiple observations per subject for the time being, proc fmm looks appropriate, but can I specify three distributions and how could I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc fmm data=xx;&lt;BR /&gt;model&amp;nbsp;wealth_2004 = afqt high_ed ses/ dist=logn; /*for positive values*/&lt;/P&gt;&lt;P&gt;model&amp;nbsp;wealth_2004 = &lt;SPAN&gt;afqt high_ed ses&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/ dist=binomial;/*for zero versus other values but what about the values close to zero?*/&lt;BR /&gt;&lt;SPAN&gt;model&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;wealth&lt;/SPAN&gt;&lt;SPAN&gt;_2004= afqt high_ed ses&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;/ dist=logn&lt;/SPAN&gt;&lt;SPAN&gt;;/*But I can't do this&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;for negative values of wealth?*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would be the most appropriate approach?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code will read the attached data file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data xx;&lt;BR /&gt;infile "H:\Articles 2018\Ability &amp;amp; Career Gen1\Wealth.txt";&lt;BR /&gt;input wealth_2004 afqt high_ed ses female black married_2004 age_2004;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 06:30:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-household-wealth-with-three-peaks/m-p/460354#M24040</guid>
      <dc:creator>garymarks</dc:creator>
      <dc:date>2018-05-07T06:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Analyzing household wealth with three peaks</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-household-wealth-with-three-peaks/m-p/460519#M24049</link>
      <description>&lt;P&gt;Your syntax is wrong, so&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetVersion=14.3&amp;amp;docsetTarget=statug_fmm_syntax.htm&amp;amp;locale=en" target="_self"&gt; see the PROC FMM documentation for the syntax&lt;/A&gt;. You only want to name the response variable one time, then use the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MODEL + ...;&lt;/P&gt;
&lt;P&gt;syntax to add in the zero-inflated component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not an expert at PROC FMM but my advice would be to look into the PARTIAL= option on the PROC FMM statement. The idea is to first prepare the data by introducing a new categorical variable that identifies the component :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;z = abs(wealth_2006);
component = sign(wealth_2006);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then use that component to help FMM identify each component:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fmm data=xx partial=component;
class component;
model z = afqt high_ed ses / dist=logn k=2;
model +     / dist=constant; /* zero inflated */
run;    &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above is untested and I don't know&amp;nbsp;whether it will work. But I think creating an indicator variable and modeling z=abs(wealth_2004) is worth looking into.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 17:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Analyzing-household-wealth-with-three-peaks/m-p/460519#M24049</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-05-07T17:24:42Z</dc:date>
    </item>
  </channel>
</rss>

