## Threshold Regression

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator

Dusan
Posts: 5
Joined: Mon Jan 19, 2009 4:49 am

### Threshold Regression

Hello,

I have a basic regression model and I want to import a threshold price, so that the independent variable has two coefficients instead of one.
For example if we have the regression y=α+β*x what i want is to convert it in y= α+β*χ(if x>5)+γ*x(if x<5).

startz
Non-normality and collinearity are NOT problems!
Posts: 3326
Joined: Wed Sep 17, 2008 2:25 pm

### Re: Threshold Regression

Dusan wrote:Hello,

I have a basic regression model and I want to import a threshold price, so that the independent variable has two coefficients instead of one.
For example if we have the regression y=α+β*x what i want is to convert it in y= α+β*χ(if x>5)+γ*x(if x<5).

Code: Select all

`ls y c x*(x>5) x*(x<5)`

The trick is that a logical condition yields a 1 if true and a 0 if false.

Dusan
Posts: 5
Joined: Mon Jan 19, 2009 4:49 am

### Re: Threshold Regression

That works perfect thank u.

Rosas
Posts: 1
Joined: Sun Sep 25, 2011 2:23 pm

### Re: Threshold Regression

In connection with the problem presented by Dusan, is it possible to perform a similar estimation where the threshold level is endogenously determined (and not User-defined) along with the model's coefficients (single independent variable plus a constant)? Is there a simple procedure for estimating such a model by using Eviews?

Bibliographical reference: Prof. Bruce Hansen's ‘Sample splitting and threshold estimation’, Econometrica, Vol.3 Nº 68 (May 2000), 575-603

Any advice would be strongly welcomed. Thanks.

Dugbeh
Posts: 2
Joined: Fri Aug 11, 2017 12:51 pm

### Re: Threshold Regression

Hi,
Concerning Threshold regression, I want to replicate a result of a study on inflation and growth but I am new to software packages. I would be happy if anyone can help me with the steps involve in finding the threshold at which inflation spurs or hurts growth.

startz
Non-normality and collinearity are NOT problems!
Posts: 3326
Joined: Wed Sep 17, 2008 2:25 pm

### Re: Threshold Regression

Perhaps lookup "threshold in the EViews help system.

Dugbeh
Posts: 2
Joined: Fri Aug 11, 2017 12:51 pm

Thanks!