SHAZAM Questions and Answers (Q&A) - RSS feedhttp://community.econometrics.com/questions/SHAZAM Econometrics, Statistics and Analytics Communityen<font color="white">Copyright <b>SHAZAM Analytics, 2018</b></font>Fri, 10 Jan 2014 13:27:30 +0000How can you constrain the Flexible Least Squares regression?http://community.econometrics.com/question/421/how-can-you-constrain-the-flexible-least-squares-regression/I'm trying to run an FLS regression on a dataset and I basically want to constrain it so that at any given time period, the sum of the coefficients/betas adds up to 1 as a condition.Thu, 09 Jan 2014 10:00:52 +0000http://community.econometrics.com/question/421/how-can-you-constrain-the-flexible-least-squares-regression/Answer by SHAZAMHelp for <p>I'm trying to run an FLS regression on a dataset and I basically want to constrain it so that at any given time period, the sum of the coefficients/betas adds up to 1 as a condition.</p>
http://community.econometrics.com/question/421/how-can-you-constrain-the-flexible-least-squares-regression/?answer=422#post-id-422Constraints in regression models in SHAZAM are possible using the RESTRICT Command however constraining an FLS is not supported by this command.
There are some recent papers that describe how this might be possible. Please see the following important page related to FLS: [http://www2.econ.iastate.edu/tesfatsi/flshome.htm](http://www2.econ.iastate.edu/tesfatsi/flshome.htm). One interesting reference on that page is:
*`Michael Markov, Vadim Mottl, and Ilya Muchnik (2004), "Principles of Nonstationary Regression Estimation: A New Approach to Dynamic Multi-Factor Models in Finance"`*Thu, 09 Jan 2014 12:41:51 +0000http://community.econometrics.com/question/421/how-can-you-constrain-the-flexible-least-squares-regression/?answer=422#post-id-422Comment by OYassin for <p>Constraints in regression models in SHAZAM are possible using the RESTRICT Command however constraining an FLS is not supported by this command. </p>
<p>There are some recent papers that describe how this might be possible. Please see the following important page related to FLS: <a href="http://www2.econ.iastate.edu/tesfatsi/flshome.htm">http://www2.econ.iastate.edu/tesfatsi/flshome.htm</a>. One interesting reference on that page is: </p>
<p><em><code>Michael Markov, Vadim Mottl, and Ilya Muchnik (2004), "Principles of Nonstationary Regression Estimation: A New Approach to Dynamic Multi-Factor Models in Finance"</code></em></p>
http://community.econometrics.com/question/421/how-can-you-constrain-the-flexible-least-squares-regression/?comment=423#post-id-423Thanks for the help. However, I actually got to SHAZAM after exploring this paper in detail. That's the exact process/model that I want to replicate on SHAZAM, the only small missing piece is that the asset weights have to add up to 1 since they're part of a whole. Do you know of a workaround?Thu, 09 Jan 2014 12:55:00 +0000http://community.econometrics.com/question/421/how-can-you-constrain-the-flexible-least-squares-regression/?comment=423#post-id-423Answer by SHAZAMHelp for <p>I'm trying to run an FLS regression on a dataset and I basically want to constrain it so that at any given time period, the sum of the coefficients/betas adds up to 1 as a condition.</p>
http://community.econometrics.com/question/421/how-can-you-constrain-the-flexible-least-squares-regression/?answer=427#post-id-427For a fixed constraint you can substitute the constraint into the equation. e.g.
Y = a + bX + (1-b)Z
becomes
Y = (a-1) + b(X-Z)
It might be worth trying to contact the authors and see if they will share their SHAZAM code.Fri, 10 Jan 2014 13:27:30 +0000http://community.econometrics.com/question/421/how-can-you-constrain-the-flexible-least-squares-regression/?answer=427#post-id-427