<?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 predict demand given price and intervention using PROC NLMIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/predict-demand-given-price-and-intervention-using-PROC-NLMIXED/m-p/388555#M20337</link>
    <description>&lt;P&gt;I have daily time series product data where the dependent variable is demand for a product in units and the indepdent variables are product price and a binary intervention dummy variable to indicate promotion. I have been told that I can use&amp;nbsp;PROC NLMIXED for this (as I do not have SAS/ETS available). Just curious, has someone applied&amp;nbsp;PROC NLMIXED for such a scenario and if so what nonlinear function would you suggest to start with and how do I determine appropriate seeding values. Any feedback would be very much appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2017 18:12:37 GMT</pubDate>
    <dc:creator>csetzkorn</dc:creator>
    <dc:date>2017-08-16T18:12:37Z</dc:date>
    <item>
      <title>predict demand given price and intervention using PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predict-demand-given-price-and-intervention-using-PROC-NLMIXED/m-p/388555#M20337</link>
      <description>&lt;P&gt;I have daily time series product data where the dependent variable is demand for a product in units and the indepdent variables are product price and a binary intervention dummy variable to indicate promotion. I have been told that I can use&amp;nbsp;PROC NLMIXED for this (as I do not have SAS/ETS available). Just curious, has someone applied&amp;nbsp;PROC NLMIXED for such a scenario and if so what nonlinear function would you suggest to start with and how do I determine appropriate seeding values. Any feedback would be very much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 18:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predict-demand-given-price-and-intervention-using-PROC-NLMIXED/m-p/388555#M20337</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2017-08-16T18:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: predict demand given price and intervention using PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predict-demand-given-price-and-intervention-using-PROC-NLMIXED/m-p/388788#M20338</link>
      <description>&lt;P&gt;Yes. It is called repeated measure mixed model.&lt;/P&gt;
&lt;P&gt;you can use it to predict demand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc mixed;&lt;/P&gt;
&lt;P&gt;class ......;&lt;/P&gt;
&lt;P&gt;model demand=price ..............;&lt;/P&gt;
&lt;P&gt;random int /subject=person;&lt;/P&gt;
&lt;P&gt;repeated time /subject=person type=ar(1) ;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 13:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predict-demand-given-price-and-intervention-using-PROC-NLMIXED/m-p/388788#M20338</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-08-17T13:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: predict demand given price and intervention using PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predict-demand-given-price-and-intervention-using-PROC-NLMIXED/m-p/388857#M20339</link>
      <description>Sorry is this intended that you do not use nlmixed? Also would person be productid in my case? I have one dependent var units. At least 3 independent vars: date, price, intervention flag (binary dummy).</description>
      <pubDate>Thu, 17 Aug 2017 15:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predict-demand-given-price-and-intervention-using-PROC-NLMIXED/m-p/388857#M20339</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2017-08-17T15:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: predict demand given price and intervention using PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/predict-demand-given-price-and-intervention-using-PROC-NLMIXED/m-p/389096#M20340</link>
      <description>&lt;PRE&gt;
proc nlmixed fit the nonlinear mixed model,
while proc mixed fit the linear mixed model.
I don't have much experience with proc nlmixed.
but I think proc mixed is able to get job done.

"Also would person be productid in my case? I have one dependent var units. At least 3 independent vars: date, price, intervention flag (binary dummy)."
Yes. person means a strata. you can use productid replace person.
if you want predicted value ,use OUTPUT statement.



proc mixed;
class flag date;
model demand=price flag;
random int /subject=person;
repeated date/subject=person type=ar(1) ;
OUTPUT out=want pred=p ;
run;


&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2017 12:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/predict-demand-given-price-and-intervention-using-PROC-NLMIXED/m-p/389096#M20340</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-08-18T12:51:26Z</dc:date>
    </item>
  </channel>
</rss>

