<?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: multivariate Non linear regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/multivariate-Non-linear-regression/m-p/361372#M18976</link>
    <description>&lt;P&gt;Paste the "updated code" that you typed in. &amp;nbsp;It's possible that that model cannot be evaluated on this data. For example, a model that has the term "log(x)" &amp;nbsp;doesn't make sense if x is always negative. &amp;nbsp;Sample data would be helpful, too.&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2017 19:59:28 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-05-24T19:59:28Z</dc:date>
    <item>
      <title>multivariate Non linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multivariate-Non-linear-regression/m-p/361365#M18974</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use NLIN Model (Non linear regression) using Sas guide.&lt;/P&gt;&lt;P&gt;My model has many covariats. When using the Sas Wizard, it's written that the number of explanatory variable is limited to 1 (not sure why..). However, when trying to update the code, it allowed me to add two more covariates but when adding dozens, I get the message: 'Zero observations could be evaluated' and the model did not predict anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea how to make it work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 19:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multivariate-Non-linear-regression/m-p/361365#M18974</guid>
      <dc:creator>NiceToBeHere</dc:creator>
      <dc:date>2017-05-24T19:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: multivariate Non linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multivariate-Non-linear-regression/m-p/361372#M18976</link>
      <description>&lt;P&gt;Paste the "updated code" that you typed in. &amp;nbsp;It's possible that that model cannot be evaluated on this data. For example, a model that has the term "log(x)" &amp;nbsp;doesn't make sense if x is always negative. &amp;nbsp;Sample data would be helpful, too.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 19:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multivariate-Non-linear-regression/m-p/361372#M18976</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-24T19:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: multivariate Non linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multivariate-Non-linear-regression/m-p/361708#M19014</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have access to the code at the moment, but I changed the generated code in 4 sections to change it to mulrivariates.&lt;/P&gt;&lt;P&gt;when I added a total of 15 covariates it did work. But from 16 it gave me the warning and did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the changes I made:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(cov1 = name of the first covariate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. a*"cov1"n ;&amp;nbsp;b*"cov2"n ; ...az*"cov52"n;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. "dependentVar1"n = a*"cov1"n +&amp;nbsp;b&lt;SPAN&gt;*"cov2"n + c*"cov3"n + ... + az*"cov52"n&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. a = 0.001 b= 0.001 c= 0.001....az = 0.001;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;Bounuds a &amp;gt; 0;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bounuds b&amp;nbsp;&amp;gt; 0;............&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bounuds az &amp;gt; 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the input: there are about 100 vectors which describe amounts - integers between 1 and 10,000 while some of them are very sparse (mostly zeros).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is enought information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 17:33:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multivariate-Non-linear-regression/m-p/361708#M19014</guid>
      <dc:creator>NiceToBeHere</dc:creator>
      <dc:date>2017-05-25T17:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: multivariate Non linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/multivariate-Non-linear-regression/m-p/361737#M19017</link>
      <description>&lt;P&gt;Although your title says "nonlinear regression," this&amp;nbsp;looks&amp;nbsp;like&lt;SPAN&gt;&amp;nbsp;a LINEAR equation with constrained coefficients &amp;gt; 0. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can put the bounds on a single statement:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BOUNDS a b ... az &amp;gt; 0;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without the real code, there's not much to say. However, here is &lt;A href="http://blogs.sas.com/content/iml/2017/01/25/simulate-regression-model-sas.html" target="_self"&gt;a simulated linear regression data set&lt;/A&gt; that contains 20 variables and an intercept. PROC NLIN has no problems finding the parameter estimates. Maybe you can use this example to help guide you. Good luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let N = 100000;        /* Specify sample size */
%let nCont = 20;       /* Specify the number of continuous variables */
 
data SimReg1(keep= Y x:);
call streaminit(54321);              /* set the random number seed */
array x[&amp;amp;nCont];         /* explanatory vars are named x1-x&amp;amp;nCont  */
 
/* 1. Specify model coefficients. You can hard-code values such as
array beta[0:&amp;amp;nCont] _temporary_ (-4 2 -1.33 1 -0.8 0.67 -0.57 0.5 -0.44 0.4 -0.36);
      or you can use a formula such as the following */
array beta[0:&amp;amp;nCont] beta0-beta&amp;amp;nCont;
do j = 0 to &amp;amp;nCont;
   beta[j] = round(4*rand("uniform"), 0.1); /* formula for beta[j]  */
end;
put (beta[*]) (=);     /* put each element of array */
 
do i = 1 to &amp;amp;N;              /* for each observation in the sample  */
   do j = 1 to dim(x);
      x[j] = rand("Normal"); /* 2. Simulate explanatory variables   */
   end;
 
   eta = beta[0];                       /* model = intercept term   */
   do j = 1 to &amp;amp;nCont;
      eta = eta + beta[j] * x[j];       /*     + sum(beta[j]*x[j])  */
   end;
   epsilon = rand("Normal", 0, 1.5);    /* 3. Specify error distrib */
   Y = eta + epsilon;                   /* 4. Y = model + error     */
   output;
end;
run;

ods select ParameterEstimates;
proc nlin data=SimReg1;
parms b1-b20 =1;
bounds b1-b20 &amp;gt; 0;
model Y = b1*x1 + b2*x2 + b3*x3 + b4*x4 + b5*x5 + 
          b6*x6 + b7*x7 + b8*x8 + b9*x9 + b10*x10 + 
          b11*x11 + b12*x12 + b13*x13 + b14*x14 + b15*x15 + 
          b16*x16 + b17*x17 + b18*x18 + b19*x19 + b20*x20; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 18:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/multivariate-Non-linear-regression/m-p/361737#M19017</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-05-25T18:42:44Z</dc:date>
    </item>
  </channel>
</rss>

