I was working on the following model
Cost stickiness it = πππ(ΞCost / Ξππππ)π,π1βπππ(ΞCost / Ξππππ)π,π2
π1,π2 β {π‘β1,β¦,π‘β15} where π1 is the most recent of the last fivteen years with an increase in sales and π2 is the most recent of the last fivteen years with a decrease in sales
I have a problem how to find the second part of the model above πππ(ΞCost / Ξππππ)π,π2.
I calculate the delta of costs and sales
I created a variable for assigning the most recent years with increase and decrease in sales.
then I stoped i couldnot proceed
Here is my data example
I hope you help me out with this situation
Cost stickiness it = πππ(ΞCost / Ξππππ)π,π1βπππ(ΞCost / Ξππππ)π,π2
π1,π2 β {π‘β1,β¦,π‘β15} where π1 is the most recent of the last fivteen years with an increase in sales and π2 is the most recent of the last fivteen years with a decrease in sales
I have a problem how to find the second part of the model above πππ(ΞCost / Ξππππ)π,π2.
I calculate the delta of costs and sales
I created a variable for assigning the most recent years with increase and decrease in sales.
then I stoped i couldnot proceed
Here is my data example
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long code int year float(d_sales d_cost decrease increase) 1 2000 . . 0 1 1 2001 687155072 776453952 0 1 1 2002 958657472 1084733056 0 1 1 2003 51737416 361816768 0 1 1 2004 1351974528 1292766848 0 1 1 2005 76952512 66355264 0 1 1 2006 2231222528 388660736 0 1 1 2007 3502545152 1855511296 0 1 1 2008 3271688960 6624133120 0 1 1 2009 730643008 -4754379776 0 1 1 2010 3267969024 1217410048 0 1 1 2011 11525493760 6337636864 0 1 1 2012 9824071680 5696627200 0 1 1 2013 12382602240 10027013120 0 1 1 2014 1.9343e+10 1.4927e+10 0 1 1 2015 2.2068e+10 2.0107e+10 0 1 1 2016 1.1711e+10 1.0668e+10 0 1 1 2017 4.53e+08 -2.373e+09 0 1 1 2018 1.343e+09 8.848e+09 0 1 1 2019 2.0602e+10 -4.2269e+10 0 1 1 2020 1.6428e+10 4.073e+09 0 1 1 2021 1.0261e+10 3.366e+09 0 1 1 2022 6.966e+09 1.533e+09 0 1 2 2000 -156685336576 -47677440000 1 0 2 2001 671396096 720872576 0 1 2 2002 119294848 -94913640 0 1 2 2003 1805700864 1498755584 0 1 2 2004 1287165824 860388864 0 1 2 2005 2891625472 2106961408 0 1 2 2006 7289358848 5864671232 0 1 2 2007 17678401536 13666197504 0 1 2 2008 5465167872 6796171776 0 1 2 2009 7889233920 6266779136 0 1 2 2010 1832838272 -1540599680 0 1 2 2011 2.10689e+10 17134536704 0 1 2 2012 31333251072 26306793472 0 1 2 2013 3.2303e+10 29138827264 0 1 2 2014 1.0969e+10 1.3417e+10 0 1 2 2015 4.9161e+10 4.0409e+10 0 1 2 2016 4.4928e+10 4.0479e+10 0 1 2 2017 2.42e+09 -8.143e+09 0 1 2 2018 5.4782e+10 3.8728e+10 0 1 2 2019 7.0215e+10 5.7269e+10 0 1 2 2020 5.1218e+10 5.6192e+10 0 1 2 2021 3.3686e+10 5.2597e+10 0 1 2 2022 5.104e+10 5.1901e+10 0 1 3 2000 -5.033733e+11 -4.539966e+11 1 0 3 2001 -428116832 -897682112 1 0 4 2000 94399936 12863759 0 1 4 2001 -69022168 -72329312 1 0 4 2002 59241148 55107264 0 1 4 2003 -1690659 -88354.2 1 0 4 2004 -12787202 -273670.1 1 0 4 2005 -45371028 -25512840 1 0 4 2006 -15737727 -46003852 1 0 4 2007 -5189456 9337137 1 0 4 2008 2865283 3687074.5 0 1 4 2009 16765775 -2104850.8 0 1 4 2010 71250896 55114084 0 1 4 2011 -56827776 -44604908 1 0 4 2012 22859584 23883712 0 1 4 2013 -24578734 -23296362 1 0 4 2014 7824253 14055684 0 1 4 2015 39845604 34588548 0 1 4 2016 167215600 151425232 0 1 4 2017 -149064192 -118633056 1 0 4 2018 228262960 258246800 0 1 4 2019 -258622112 -268939264 1 0 4 2020 172284304 29413868 0 1 4 2021 8413173 52393352 0 1 4 2022 -122480888 -6866073 1 0 5 2000 -20515790 -38597432 1 0 5 2001 -78819272 -25491252 1 0 5 2002 -12184994 28049694 1 0 5 2003 36632112 -20726088 0 1 5 2004 -42197156 -22343782 1 0 5 2005 -3982463 134131488 1 0 5 2006 282666528 58637672 0 1 5 2007 -29030654 -80071816 1 0 5 2008 -190311344 -92928912 1 0 5 2009 -65527788 -29368732 1 0 5 2010 94041760 27918140 0 1 5 2011 -73699392 -15285444 1 0 5 2012 35886388 6142360 0 1 5 2013 -47359524 -46379580 1 0 5 2014 715291.6 11106601 0 1 5 2015 31348976 40612180 0 1 5 2016 397737472 337737504 0 1 5 2017 49058796 67974864 0 1 5 2018 -44741256 -31322890 1 0 5 2019 66428104 61558088 0 1 5 2020 -153688016 -142375312 1 0 5 2021 -15384852 -33489624 1 0 5 2022 -99792552 -80424600 1 0 6 2000 1599978624 1407574400 0 1 6 2001 140467216 160067136 0 1 6 2002 61859420 96501592 0 1 6 2003 -98956128 252396256 1 0 6 2004 -110116608 -375609056 1 0 6 2005 -443111424 -503624416 1 0 end
I hope you help me out with this situation
Comment