<?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: Modelling data using inflated beta regression and PROC NLMIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390603#M20359</link>
    <description>&lt;P&gt;&lt;FONT face="Calibri"&gt;v_lgd_da_mora_st_out&lt;/FONT&gt; is the response variable while the other ones are the independent variables; sorry&amp;nbsp;for the&amp;nbsp;superficiality.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2017 13:30:14 GMT</pubDate>
    <dc:creator>Quantopic</dc:creator>
    <dc:date>2017-08-24T13:30:14Z</dc:date>
    <item>
      <title>Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390171#M20321</link>
      <description>&lt;P&gt;Hi all SAS users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to model loss-given-default data on the basis of the SAS&amp;nbsp;paper n. 1593-2014 (see &lt;A href="http://support.sas.com/resources/papers/proceedings14/1593-2014.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings14/1593-2014.pdf&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Particularly, the third model proposed by the authors in&amp;nbsp;such paper&amp;nbsp;is based on the inflated beta regression model, that is explained with the following SAS program:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlmixed data=MyData tech=quanew maxiter=3000 maxfunc=3000 qtol=0.0001;
parms b0-b14=0.0001
pie=0.2
kesai=0.3
phi=2;
cov_mu=b0+b1*Var1+b2*Var2+…+b14*Var14;
mu=logistic(cov_mu);
if RR=0
then loglikefun=log(pie)+log(1-kesai);
if RR&amp;gt;=1
then loglikefun=log(pie)+log(kesai);
if 0&amp;lt;RR&amp;lt;1
then loglikefun=log(1-pie)+lgamma(phi)-lgamma(mu*phi)-lgamma((1-mu)*phi)
+(mu*phi-1)*log(RR)+((1-mu)*phi-1)*log(1-RR);
predict pie*kesai+(1-pie)*mu out=Inf_beta_output (keep=instrument_id RR pred);
model RR~general(loglikefun);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I would like to understand what are the parameters &lt;EM&gt;pie&lt;/EM&gt;, &lt;EM&gt;kesai&lt;/EM&gt; and &lt;EM&gt;phi&lt;/EM&gt; and how they can be computed/estimated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, I know that the beta distribution has 2 shape parameters, usually named &lt;EM&gt;alpha&lt;/EM&gt; and &lt;EM&gt;beta&lt;/EM&gt;, that can be computed on the basis of the sample mean and variance by using the method of moments, but I do not know how to to relate such parameters with ones used in the program (&lt;EM&gt;pie&lt;/EM&gt;, &lt;EM&gt;kesai&lt;/EM&gt; and &lt;EM&gt;phi&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you suggest some solution or explanation about such parameters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 10:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390171#M20321</guid>
      <dc:creator>Quantopic</dc:creator>
      <dc:date>2017-08-23T10:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390197#M20322</link>
      <description>&lt;P&gt;Those are the parameters in the mixture model on p 4-5 of the reference paper.&lt;/P&gt;
&lt;P&gt;pie =&amp;nbsp;&lt;FONT face="symbol"&gt;p&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;= mixing probability, the Greek letter 'pi'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="symbol"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;kesai&amp;nbsp;=&amp;nbsp;&lt;FONT face="symbol"&gt;y =&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;the Greek letter 'psi' (the authors apparently thought this was 'xi', which is pronounced ke-sai)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="symbol"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;FONT face="symbol"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;phi = &lt;FONT face="symbol"&gt;f&amp;nbsp;&lt;/FONT&gt;= the Greek letter 'phi'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 12:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390197#M20322</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-23T12:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390292#M20346</link>
      <description>&lt;P&gt;If this is, as it seems, a finite mixture model, then you might find it easier to implement in PROC FMM.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390292#M20346</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-08-23T15:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390461#M20350</link>
      <description>&lt;P&gt;Thanks for the answer&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;but I meant about the way to estimate them, assuming they were something like the distribution parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to you, is there a way to extrapolate such values from data?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 23:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390461#M20350</guid>
      <dc:creator>Quantopic</dc:creator>
      <dc:date>2017-08-23T23:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390464#M20351</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;and thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually my problem is to understand how I can estimate such parameters and not to understand how to use PROC NLMIXED.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, if you suggest an example code by using the PROC FMM it will be surely appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 23:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390464#M20351</guid>
      <dc:creator>Quantopic</dc:creator>
      <dc:date>2017-08-23T23:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390467#M20352</link>
      <description>&lt;P&gt;The paper that you link and the code that you posted show how to&amp;nbsp;fit the parameters to data. What else are you looking for?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 23:56:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390467#M20352</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-23T23:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390519#M20353</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;, according to me, the paper I posted in the link and the relative code show how to estimate the parameter of the inflated beta regression, while I referred to the input parameters &lt;EM&gt;pie&lt;/EM&gt;, &lt;EM&gt;kesai&lt;/EM&gt; and &lt;EM&gt;phi.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Such ones are the parameters of the distributions and in the paper are given.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am asking for a way to get such values from data because I did not understand how to do that from the paper.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 07:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390519#M20353</guid>
      <dc:creator>Quantopic</dc:creator>
      <dc:date>2017-08-24T07:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390544#M20356</link>
      <description>&lt;P&gt;Those parameters appear in the PARMS statement. Therefore they are not fixed values, they are parameters in the model that are estimated from the data as part of the MLE. Near the top of p. 5 the authors&amp;nbsp;say "The unknown parameters [including pie, kesai, and phi]&amp;nbsp;are solved by standard optimization algorithms" in PROC NLMIXED.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you asking how to find the INITIAL GUESSES for the PARMS statement? You can often guess a value based on graphical analysis and preliminary modeling, or use the tips at &lt;A href="http://blogs.sas.com/content/iml/2014/06/11/initial-guess-for-optimization.html" target="_self"&gt;"How to find an initial guess for an optimization."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you provide example data,&amp;nbsp;we could show you with code that&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;pie,&amp;nbsp;&lt;/SPAN&gt;kesai&lt;SPAN&gt;, and phi are part of the parameter estimates table in the output.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 09:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390544#M20356</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-24T09:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390547#M20357</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;for providing the link to the article about the initial guess computation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really useful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, I attached a sample dataset with 1000 records and the variables used in the programs; it would be really appreciated if you could show me how to do that with an example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 09:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390547#M20357</guid>
      <dc:creator>Quantopic</dc:creator>
      <dc:date>2017-08-24T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390595#M20358</link>
      <description>&lt;P&gt;What variable is the response? Which are the independent variables?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 13:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390595#M20358</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-24T13:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390603#M20359</link>
      <description>&lt;P&gt;&lt;FONT face="Calibri"&gt;v_lgd_da_mora_st_out&lt;/FONT&gt; is the response variable while the other ones are the independent variables; sorry&amp;nbsp;for the&amp;nbsp;superficiality.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 13:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390603#M20359</guid>
      <dc:creator>Quantopic</dc:creator>
      <dc:date>2017-08-24T13:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390610#M20360</link>
      <description>&lt;P&gt;Here is the "translation" from your variables to the variables in the paper:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc nlmixed data=MyData tech=quanew maxiter=3000 maxfunc=3000 qtol=0.0001;
parms b0-b5=1
      pie=0.2
      kesai=0.3
      phi=2;
RR = v_lgd_da_mora_st_out;
Var1 = flg_proc_conc;
Var2 = dummy_ipo_p;
Var3 = dummy_pegno_p;
Var4 = dummy_pers_p;
Var5 = cat_syges_rt;

cov_mu=b0+b1*Var1+b2*Var2+b3*Var3+b4*Var4+b5*Var5;
mu=logistic(cov_mu);
if RR=0
then loglikefun=log(pie)+log(1-kesai);
if RR&amp;gt;=1
then loglikefun=log(pie)+log(kesai);
if 0&amp;lt;RR&amp;lt;1
then loglikefun=log(1-pie)+lgamma(phi)-lgamma(mu*phi)-lgamma((1-mu)*phi)
+(mu*phi-1)*log(RR)+((1-mu)*phi-1)*log(1-RR);
predict pie*kesai+(1-pie)*mu out=Inf_beta_output (keep=v_lgd_da_mora_st_out pred);
model RR~general(loglikefun);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Aug 2017 13:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390610#M20360</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-24T13:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modelling data using inflated beta regression and PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390624#M20362</link>
      <description>&lt;P&gt;Based on the description at the beginning of the paper, it seems they are fitting something similar to this example from the Proc FMM documentation.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_fmm_examples01.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_fmm_examples01.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any regard, FMM will give you estimates of the mixing probabilties directly (or they can be modeled using additional effects with the PROBMODEL statement0.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Modelling-data-using-inflated-beta-regression-and-PROC-NLMIXED/m-p/390624#M20362</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2017-08-24T14:11:39Z</dc:date>
    </item>
  </channel>
</rss>

