Refuses to Estimate Dummy Variable

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

econstudent
Posts: 2
Joined: Sun Mar 16, 2014 5:20 am

Refuses to Estimate Dummy Variable

Postby econstudent » Sun Mar 16, 2014 5:24 am

I had no problem estimating my equation before the dummy, but now I've added the binary intercept dummy it's refusing to estimate saying "log of non-positive number" error.

What I would like to estimate is this:
log(y) = log(c(1)) + c(2)*log(k) + c(3)*log(l) + c(4)*log(e) + c(5)*log(m) + dummy*log(c(6))

I have tried many different variants but it refuses to estimate it.

I'm using Eviews 7.

It had no problem estimating the original equation which was:

log(y) = log(c(1)) + c(2)*log(k) + c(3)*log(l) + c(4)*log(e) + c(5)*log(m)

and my dummy variable seem to be fine.

Any ideas on how to make it work? I've tried adding extra brackets but the error still comes up

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Refuses to Estimate Dummy Variable

Postby trubador » Sun Mar 16, 2014 5:56 am

As the error message clearly states that you are trying to take the logarithm of a non-positive number, which is either zero or negative. Since the problematic term appears to be dummy*log(c(6)) and the only logarithmic operation performed is the one on the coefficient (not on the variable dummy), then you can infer that logarithm of c(6) is the source of problem. You'll soon discover that coefficient vector, c, in the workfile, is filled with zeros by default and is updated after each estimation.

econstudent
Posts: 2
Joined: Sun Mar 16, 2014 5:20 am

Re: Refuses to Estimate Dummy Variable

Postby econstudent » Sun Mar 16, 2014 7:35 am

The coefficient, c, is full of negative numbers and zeros.

It estimated this without a problem:
LOG(Y) = LOG(C(1)) + C(2)*LOG(K) + C(3)*LOG(L) + C(4)*LOG(E) + C(5)*LOG(M) + C(6)*DUMMY

but that isn't what I'm looking for, as I want to estimate the effect of the intercept dummy.

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

Re: Refuses to Estimate Dummy Variable

Postby startz » Sun Mar 16, 2014 8:18 am

The coefficient, c, is full of negative numbers and zeros.

It estimated this without a problem:
LOG(Y) = LOG(C(1)) + C(2)*LOG(K) + C(3)*LOG(L) + C(4)*LOG(E) + C(5)*LOG(M) + C(6)*DUMMY

but that isn't what I'm looking for, as I want to estimate the effect of the intercept dummy.
C(6) gives the effect of the intercept dummy.

Trubador pointed out that in your previous equation you had log(c(6)), which isn't defined for values c(6)<=0.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests