Split variable with dummies

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

margarita
Posts: 3
Joined: Tue Sep 08, 2009 1:30 am

Split variable with dummies

Postby margarita » Mon Sep 21, 2009 1:22 am

Hi all,

within my long regression I have one variable "itraxx", which I want to split in pre and post crisis with a dummy. How do I enter this in eviews? This is my very simplified regression:

spread c itraxx

If I want to split it, can I just enter this:

spread c itraxx*precrisis itraxx*crisis

so I get the relation between the itraxx till sept '07 (pre-crisis) and spread, ánd a second relation between itraxx during crisis (after sept 2007) and spread, or how do I have to insert this equation? Thank you for your help!

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

Re: Split variable with dummies

Postby startz » Mon Sep 21, 2009 6:45 am

That's fine, although you shold consider whether you also want to allow separate intercepts, as in

Code: Select all

spread itraxx*precrisis itraxx*crisis precrisis crisis


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests