Is it possible to use EViews MIDAS estimation in conjuction with threshold estimation?

For econometric discussions not necessarily related to EViews.

Moderators: EViews Gareth, EViews Moderator

eoafriyie89
Posts: 3
Joined: Mon Sep 05, 2016 8:29 am

Is it possible to use EViews MIDAS estimation in conjuction with threshold estimation?

Postby eoafriyie89 » Mon Sep 05, 2016 8:33 am

Is it possible to use EViews MIDAS estimation in conjuction with threshold estimation? For example, in my threshold regression, if my dependent variable has a frequency lower than one or more of my independent variables, how can I employ MIDAS to my advantage?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Is it possible to use EViews MIDAS estimation in conjuction with threshold estimation?

Postby EViews Gareth » Mon Sep 05, 2016 8:40 am

Not built in, but basic pdl based weighting MIDAS routines are pretty easy to write manually.

eoafriyie89
Posts: 3
Joined: Mon Sep 05, 2016 8:29 am

Re: Is it possible to use EViews MIDAS estimation in conjuction with threshold estimation?

Postby eoafriyie89 » Mon Sep 05, 2016 8:55 am

Not built in, but basic pdl based weighting MIDAS routines are pretty easy to write manually.
Okay. Kinldy refer me to any material that can enable me do it.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Is it possible to use EViews MIDAS estimation in conjuction with threshold estimation?

Postby EViews Gareth » Mon Sep 05, 2016 2:45 pm

Here's a simple program that does pdl MIDAS:

Code: Select all

!xlags = 4 !ylags=1 !horizon=2 !polyorder = 3 wfopen(wf=midas, page=quarterly) .\mydata.xlsx range="Sheet1" pageload(page=monthly) .\mydata.xlsx range="Sheet2" series x1 = dlog(value(-!horizon))*100 for !i=2 to !xlags series x!i = x1(-!i+1) next for !i=1 to !xlags series z!i=x!i(-2) next pageselect quarterly series y = dlog(value)*100 smpl 1985 2009/1/1 for !i=1 to !xlags copy(c=l) monthly\z!i x!i next for !i=1 to !polyorder series z!i=0 scalar w!i=0 next for !i=1 to !xlags for !j=1 to !polyorder z!j = z!j + !i^(!j-1)*x!i w!j = w!j + !i^(!j-1) next next group xlags z* group ylags for !i=1 to !ylags ylags.add y(-!i) next equation eq2.ls y c xlags ylags show eq2
Attachments
mydata.xlsx
(47.65 KiB) Downloaded 233 times

eoafriyie89
Posts: 3
Joined: Mon Sep 05, 2016 8:29 am

Re: Is it possible to use EViews MIDAS estimation in conjuction with threshold estimation?

Postby eoafriyie89 » Tue Sep 06, 2016 6:58 am

Here's a simple program that does pdl MIDAS:

Code: Select all

!xlags = 4 !ylags=1 !horizon=2 !polyorder = 3 wfopen(wf=midas, page=quarterly) .\mydata.xlsx range="Sheet1" pageload(page=monthly) .\mydata.xlsx range="Sheet2" series x1 = dlog(value(-!horizon))*100 for !i=2 to !xlags series x!i = x1(-!i+1) next for !i=1 to !xlags series z!i=x!i(-2) next pageselect quarterly series y = dlog(value)*100 smpl 1985 2009/1/1 for !i=1 to !xlags copy(c=l) monthly\z!i x!i next for !i=1 to !polyorder series z!i=0 scalar w!i=0 next for !i=1 to !xlags for !j=1 to !polyorder z!j = z!j + !i^(!j-1)*x!i w!j = w!j + !i^(!j-1) next next group xlags z* group ylags for !i=1 to !ylags ylags.add y(-!i) next equation eq2.ls y c xlags ylags show eq2


Thanks a lot! This helps me to do the MIDAS, but my initial problem still stands, as this does not enable me to split my threshold data into two or more regimes, as a typical threshold estimation would have done. Kindly help!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Is it possible to use EViews MIDAS estimation in conjuction with threshold estimation?

Postby EViews Gareth » Tue Sep 06, 2016 8:18 am

I know nothing about threshold MIDAS as a theory, but if you want to run a threshold regression with some MIDAS variables, just change the bit that does a least squares regression into something that does threshold regression (I'm assuming the threshold variable isn't one of the MIDAS ones, because that might be more tricky).


Return to “Econometric Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests