Probit - Please please please help!
Moderators: EViews Gareth, EViews Moderator
Probit - Please please please help!
I have been running a probit model as part of a HECKMAN TWO STEP method on Eviews. I'm using a panel dataset. When I try and estimate the probit model over all the observations, I get a sign come up saying: -
DEPENDENT VARIABLE HAS NO VARIANCE.
But my dependent variable (a binary choice) clearly does have variance in that there are a large amount of zeros and a large amount of ones.
Why might this sign come up?
What does it mean ordinarily??? Please help, I don't know what else to do I'm so stuck!
Thank you!
DEPENDENT VARIABLE HAS NO VARIANCE.
But my dependent variable (a binary choice) clearly does have variance in that there are a large amount of zeros and a large amount of ones.
Why might this sign come up?
What does it mean ordinarily??? Please help, I don't know what else to do I'm so stuck!
Thank you!
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Probit - Please please please help!
You should check whether the smpl ended up excluding some values. This can happen "behind your back" if some of the other variables in the probit have NAs.I have been running a probit model as part of a HECKMAN TWO STEP method on Eviews. I'm using a panel dataset. When I try and estimate the probit model over all the observations, I get a sign come up saying: -
DEPENDENT VARIABLE HAS NO VARIANCE.
But my dependent variable (a binary choice) clearly does have variance in that there are a large amount of zeros and a large amount of ones.
Why might this sign come up?
What does it mean ordinarily??? Please help, I don't know what else to do I'm so stuck!
Thank you!
Re: Probit - Please please please help!
Thanks for the quick reply Startz,
Given that it has removed some observations due to NA, how do I check what observations remain? (i.e. how do I look at the dependent variable series that is left over in order to check that this is the problem I'm experiencing?)
In order for this warning sign to appear, does it require that there is actually no variance in the dependent variable (i.e. that there are only ones in my dependent variable series, or does it only require that there is a negligible amount of zeros?)
I'd appreciate another speedy reply so very much...
Given that it has removed some observations due to NA, how do I check what observations remain? (i.e. how do I look at the dependent variable series that is left over in order to check that this is the problem I'm experiencing?)
In order for this warning sign to appear, does it require that there is actually no variance in the dependent variable (i.e. that there are only ones in my dependent variable series, or does it only require that there is a negligible amount of zeros?)
I'd appreciate another speedy reply so very much...
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13608
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Probit - Please please please help!
One way to do it is to click on Proc->Make Regressor Group from your equation, then name the group that appears (by clicking on the Name button), then type this into the command pane:
series test = @robs(group01)=@max(@robs(group01))
show test
where Group01 is the name of the group you created. The resultant series will tell you (with a 1 or a 0) whether an observation would be included or not.
series test = @robs(group01)=@max(@robs(group01))
show test
where Group01 is the name of the group you created. The resultant series will tell you (with a 1 or a 0) whether an observation would be included or not.
Re: Probit - Please please please help!
Thanks Gareth,
That sounds useful but how can I do this when Eviews won't let me run the equation in the first place?
That sounds useful but how can I do this when Eviews won't let me run the equation in the first place?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13608
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Probit - Please please please help!
Estimate it by Least Squares first (just to get a working equation).
Re: Probit - Please please please help!
I workerd through your advice on Eviews and found that for some of my datasets there were indeed no zero values (of my binary dependent variable) making it through to the estimated equation.
HOWEVER... for some I did find a proportion of zero values making it through. For instance one dataset returned 189 zeros and 1277 ones, but Eviews will not run the Probit regression, saying "dependent variable has no variance"...
Is is possible for Eviews to return the message "dependent variable has no variance" when there are a non zero amount of zeros (as in the case above)?
I.E. Will Eviews refuse to run a probit (even when there is some degree of variance) if the amount of zeros is a low proportion of the total observations included?
Please help, you've been so much use so far guys...
HOWEVER... for some I did find a proportion of zero values making it through. For instance one dataset returned 189 zeros and 1277 ones, but Eviews will not run the Probit regression, saying "dependent variable has no variance"...
Is is possible for Eviews to return the message "dependent variable has no variance" when there are a non zero amount of zeros (as in the case above)?
I.E. Will Eviews refuse to run a probit (even when there is some degree of variance) if the amount of zeros is a low proportion of the total observations included?
Please help, you've been so much use so far guys...
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13608
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Probit - Please please please help!
It shouldn't.
If you post your workfile, we'll take a look at what's going on.
If you post your workfile, we'll take a look at what's going on.
Re: Probit - Please please please help!
Never mind a little more number jumbling and I've realised that only the ones with no zero values can't be estimated.
Thanks soooo much for your help guys, now I've just got to work out why no zero values make it through!
P.S. You can't control for random or fixed effects in limitied dependent variable models (i.e. Probit) in Eviews can you?
Thanks soooo much for your help guys, now I've just got to work out why no zero values make it through!
P.S. You can't control for random or fixed effects in limitied dependent variable models (i.e. Probit) in Eviews can you?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13608
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Probit - Please please please help!
Unfortunately, not.
Although you might be able to add dummy variables to your equation for each cross-section which would act as fixed effects.
In a pool setup this could be done simply by adding "C" as a cross-section specific regressor.
In a panel setup this could be done by adding @expand(@crossid, @dropfirst) as a regressor.
Although you might be able to add dummy variables to your equation for each cross-section which would act as fixed effects.
In a pool setup this could be done simply by adding "C" as a cross-section specific regressor.
In a panel setup this could be done by adding @expand(@crossid, @dropfirst) as a regressor.
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Probit - Please please please help!
Caveats about the asymptotics required for these latter results should be kept in mind. You need the number of observations for each cross-section unit to go to infinity.
Re: Probit - Please please please help!
And if, say, I had large value of observations (say 200) and a small value of time periods (say15)...?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13608
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Probit - Please please please help!
You mean 200 cross-sections, and 15 time periods? That should be ok...
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Probit - Please please please help!
This might be a little dicey, for the same reasons that a probit on a single sample of 15 observations might not be great. Unfortunately, this is an econometric issue more than an EViews issue.And if, say, I had large value of observations (say 200) and a small value of time periods (say15)...?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Probit - Please please please help!
Maybe, the issue is that there are only 15 observations to identify each time cross-section constant and that's not a lot in a nonlinear estimator.You mean 200 cross-sections, and 15 time periods? That should be ok...
Who is online
Users browsing this forum: No registered users and 2 guests
