<?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: Proc hpfmm finding components paramenters using class in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Proc-hpfmm-finding-components-paramenters-using-class/m-p/930149#M2415</link>
    <description>&lt;P&gt;I would like the same output but with class define different regressors for each combination of reg_clim and period.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="harmonic_0-1716998008844.png" style="width: 629px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96840i74929E0C34ACE3E2/image-dimensions/629x162?v=v2" width="629" height="162" role="button" title="harmonic_0-1716998008844.png" alt="harmonic_0-1716998008844.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 15:53:46 GMT</pubDate>
    <dc:creator>harmonic</dc:creator>
    <dc:date>2024-05-29T15:53:46Z</dc:date>
    <item>
      <title>Proc hpfmm finding components paramenters using class</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Proc-hpfmm-finding-components-paramenters-using-class/m-p/930126#M2412</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am struggling finding the components for a normal distribution function using the parameter class, where should I find for each category the parameters to write my probability function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My first step was to fit my function to my data like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on /height=900 width=1600;
ods select DensityPlot;
proc hpfmm data=casuser.ds_11_15 gconv=0 plots=density(bins=90);
class reg_clim_num; 
bayes MUPRIORPARMS((0,  2E12	) (-40000, .)  ) ;
   model dk_cons =/ dist=normal k=2 /*parms(23000000 ., 34000000 ., 120000000 . )*/;
	ods output PostIntervals=PostIntervals;
	ods output PostSummaries=PostSummaries;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="harmonic_0-1716987251324.png" style="width: 598px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96835i93E1683B92AD5554/image-dimensions/598x334?v=v2" width="598" height="334" role="button" title="harmonic_0-1716987251324.png" alt="harmonic_0-1716987251324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I would like to define the parameters by my category variable reg_clim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on /height=900 width=1600;
ods select DensityPlot;
proc hpfmm data=casuser.ds_11_15 gconv=0 plots=density(bins=90);
class reg_clim; 
bayes MUPRIORPARMS((0,  2E12	) (-40000, .)  ) ;
   model dk_cons = reg_clim/ dist=normal k=2 /*parms(23000000 ., 34000000 ., 120000000 . )*/;
	ods output PostIntervals=PostIntervals;
	ods output PostSummaries=PostSummaries;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;WARNING: Output 'DensityPlot' was not created.  Make sure that the output object name, label, or path is spelled correctly.  Also, 
         verify that the appropriate procedure options are used to produce the requested output object.  For example, verify that 
         the NOPRINT option is not used.&lt;/PRE&gt;
&lt;P&gt;I got this warning with no plot distribution and with these outputs&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="harmonic_2-1716987491739.png" style="width: 706px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96837iA68AF7C1D6905F24/image-dimensions/706x136?v=v2" width="706" height="136" role="button" title="harmonic_2-1716987491739.png" alt="harmonic_2-1716987491739.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="harmonic_3-1716987533523.png" style="width: 629px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96838i98880D16AB7ABEAF/image-dimensions/629x110?v=v2" width="629" height="110" role="button" title="harmonic_3-1716987533523.png" alt="harmonic_3-1716987533523.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know how to interpret them. The mean has strange values and the reg_clim 15 has missing parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any advice, thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I will upload my data and my output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 13:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Proc-hpfmm-finding-components-paramenters-using-class/m-p/930126#M2412</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2024-05-29T13:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc hpfmm finding components paramenters using class</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Proc-hpfmm-finding-components-paramenters-using-class/m-p/930135#M2413</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/449771"&gt;@harmonic&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am struggling finding the components for a normal distribution function using the parameter class, where should I find for each category the parameters to write my probability function.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you are looking for separate output for each level of your Reg_clim_num or Reg_clim then I think that means you want the variable as a BY variable and not CLASS. Sort the data by Reg_clim_num and then use:&lt;/P&gt;
&lt;PRE&gt;ods select DensityPlot;
proc hpfmm data=casuser.ds_11_15 gconv=0 plots=density(bins=90);
by reg_clim_num; 
bayes MUPRIORPARMS((0,  2E12	) (-40000, .)  ) ;
   model dk_cons =/ dist=normal k=2 /*parms(23000000 ., 34000000 ., 120000000 . )*/;
	ods output PostIntervals=PostIntervals;
	ods output PostSummaries=PostSummaries;
run;&lt;/PRE&gt;
&lt;P&gt;From the online help:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="stathpug.hpfmm.bystmt" class="aa-section"&gt;
&lt;DIV class="xisDoc-title"&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;H3 class="xisDoc-title"&gt;BY Statement&lt;/H3&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="stathpug_hpfmm002336" class="aa-statementblock"&gt;
&lt;UL class="aa-statementblock" type="none"&gt;
&lt;LI&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&lt;SPAN class="aa-statement"&gt;BY&lt;/SPAN&gt; &lt;SPAN class="aa-statementoptional"&gt;variables&lt;/SPAN&gt;;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;You can specify a BY statement in PROC HPFMM to obtain separate analyses of observations in groups that are defined by the BY variables. When a BY statement appears, the procedure expects the input data set to be sorted in order of the BY variables. If you specify more than one BY statement, only the last one specified is used.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&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>Wed, 29 May 2024 13:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Proc-hpfmm-finding-components-paramenters-using-class/m-p/930135#M2413</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-29T13:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc hpfmm finding components paramenters using class</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Proc-hpfmm-finding-components-paramenters-using-class/m-p/930149#M2415</link>
      <description>&lt;P&gt;I would like the same output but with class define different regressors for each combination of reg_clim and period.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="harmonic_0-1716998008844.png" style="width: 629px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96840i74929E0C34ACE3E2/image-dimensions/629x162?v=v2" width="629" height="162" role="button" title="harmonic_0-1716998008844.png" alt="harmonic_0-1716998008844.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 15:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Proc-hpfmm-finding-components-paramenters-using-class/m-p/930149#M2415</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2024-05-29T15:53:46Z</dc:date>
    </item>
  </channel>
</rss>

