<?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: PROCs for multiplicative (?) model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611430#M29592</link>
    <description>&lt;P&gt;I don't think I'd describe the model the same way you did (a quadratic that is inflated/deflated), but I will leave the interpretation to you. Yes, this is probably a good task for PROC NLIN, which performs least-squares estimates for nonlinear regression models.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
array B[0:6] B0-B6 (1 2 -0.3
                    0.4 -0.5
                    0.1  0.2 );
call streaminit(123);
do x1 = -1 to 1;
   do x2 = -1 to 1;
      do x3 = -1 to 1;
         y = (B0 + B1*X1 + B2*X1**2 )  *  
             (1 + B3*X2 + B4*X2**2)  *  
             (1 + B5*X3 + B6*X3**2)
             + rand("Normal", 0, 0.2);
         output;
      end;
   end;
end;
drop B0-B6;
run;

proc nlin data=Have method=marquardt;
   parms B0 0 
         B1 0
         B2 -1
         B3 0
         B4 -1
         B5 0
         B6 1;
   model Y = (B0 + B1*X1 + B2*X1**2 )  *  
             (1 + B3*X2 + B4*X2**2)  *  
             (1 + B5*X3 + B6*X3**2);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note well the error structure that I used for the simulated data. The errors are additive.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 19:24:05 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-12-12T19:24:05Z</dc:date>
    <item>
      <title>PROCs for multiplicative (?) model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611317#M29583</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not a modeling person, though at times in my life I've run PROC REG, PROC LOGISTIC, and a few other basic modeling PROCs like those.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I know how to fit a linear model like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y= B0 + B1*X1 + B2*X1**2&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been asked to play around with some data, fitting a model like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y= (B0 + B1*X1 + B2*X1**2 )&amp;nbsp; &lt;STRONG&gt;*&lt;/STRONG&gt;&amp;nbsp; (1 + B3*X2 + B4*X2**2)&amp;nbsp; &lt;STRONG&gt;*&lt;/STRONG&gt;&amp;nbsp; (1 + B5*X3 + B6*X3**2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The concept of the model (I think : ) is that the first term in parentheses uses X1 to predict Y, the second term uses X2 to inflate/deflate the prediction, and the third term uses X3 to further inflate/deflate the prediction.&amp;nbsp; We want estimates of B0-B6, which will ultimately used for prediction/scoring.&amp;nbsp; Y and all of the predictors are continuous.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So this looks to me like it's not an additive model, it's some mix of additive and multiplicative.&amp;nbsp; I was reading up last night on GLMSELECT, but I don't think it's meant for this sort of model.&amp;nbsp; What PROCs should I be reading up on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this the world of PROC NLIN, PROC MODEL or something else?&amp;nbsp; I have SAS/STAT SAS/ETS&amp;nbsp; and SAS/QC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;-Q.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 14:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611317#M29583</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-12-12T14:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROCs for multiplicative (?) model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611332#M29584</link>
      <description>&lt;P&gt;Perhaps model the log() of your desired model and then it becomes some sort of linear-log model? Just a thought.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-unison&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 14:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611332#M29584</guid>
      <dc:creator>unison</dc:creator>
      <dc:date>2019-12-12T14:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROCs for multiplicative (?) model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611336#M29585</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/270457"&gt;@unison&lt;/a&gt;&amp;nbsp;.&amp;nbsp; I think that's a good thought when the model is Y=X1*X2*X3, e.g.&amp;nbsp;&lt;STRONG&gt;&lt;A href="http://www-ist.massey.ac.nz/dstirlin/CAST/CAST/Hmultiplicative/multiplicative1.html" target="_blank"&gt;http://www-ist.massey.ac.nz/dstirlin/CAST/CAST/Hmultiplicative/multiplicative1.html&lt;/A&gt;.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I don't have variables being multiplied, I have expressions being multiplied:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;y= (B0 + B1*X1 + B2*X1**2 )&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; (1 + B3*X2 + B4*X2**2)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; (1 + B5*X3 + B6*X3**2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And I want an estimate for all 7 parameters (B0-B6).&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So I don't have a variable to take the log of.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 15:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611336#M29585</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-12-12T15:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: PROCs for multiplicative (?) model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611430#M29592</link>
      <description>&lt;P&gt;I don't think I'd describe the model the same way you did (a quadratic that is inflated/deflated), but I will leave the interpretation to you. Yes, this is probably a good task for PROC NLIN, which performs least-squares estimates for nonlinear regression models.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
array B[0:6] B0-B6 (1 2 -0.3
                    0.4 -0.5
                    0.1  0.2 );
call streaminit(123);
do x1 = -1 to 1;
   do x2 = -1 to 1;
      do x3 = -1 to 1;
         y = (B0 + B1*X1 + B2*X1**2 )  *  
             (1 + B3*X2 + B4*X2**2)  *  
             (1 + B5*X3 + B6*X3**2)
             + rand("Normal", 0, 0.2);
         output;
      end;
   end;
end;
drop B0-B6;
run;

proc nlin data=Have method=marquardt;
   parms B0 0 
         B1 0
         B2 -1
         B3 0
         B4 -1
         B5 0
         B6 1;
   model Y = (B0 + B1*X1 + B2*X1**2 )  *  
             (1 + B3*X2 + B4*X2**2)  *  
             (1 + B5*X3 + B6*X3**2);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note well the error structure that I used for the simulated data. The errors are additive.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 19:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611430#M29592</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-12T19:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROCs for multiplicative (?) model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611434#M29593</link>
      <description>&lt;P&gt;Thanks much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;, will read up on NLIN tonight.&amp;nbsp; I've used it once before, but I was spoon-fed the code from a statistician.&amp;nbsp; It is cool how you just write the model.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 20:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611434#M29593</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-12-12T20:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROCs for multiplicative (?) model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611435#M29594</link>
      <description>&lt;P&gt;Glad to help. I have some prior experience with simulating data.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 20:16:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROCs-for-multiplicative-model/m-p/611435#M29594</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-12-12T20:16:37Z</dc:date>
    </item>
  </channel>
</rss>

