Insufficient number of observations

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

jasperq
Posts: 8
Joined: Thu May 10, 2012 3:24 am

Insufficient number of observations

Postby jasperq » Mon May 06, 2013 12:53 am

Hi,
I am having a problem when I want to estimate my equation. I have a set of paneldata (20 countries, 8 years) on a certain variable that is available for all countries over all years. Now I want to specify my explanatory variable in five levels, so I created five new variables. Now I want to make a regression but eviews tells me I have an insufficient number of observations.
Does anyone kwow if there is an easier way to split my explanatory variable into five new variables so that eviews will not make a problem. I attached my data in an excel format.
Attachments
forum.xlsx
(22.22 KiB) Downloaded 1406 times

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

Re: Insufficient number of observations

Postby startz » Mon May 06, 2013 6:58 am

It would be much better if you
(a) posted the EViews workfile you actually used.
(b) showed exactly what regression you ran.

jasperq
Posts: 8
Joined: Thu May 10, 2012 3:24 am

Re: Insufficient number of observations

Postby jasperq » Tue May 07, 2013 9:53 am

Okay, I have my workfile attached. As you can see I have been struggling with discriminating unden for the different levels. What I would like to do is to run a regression that includes an explanatory variable that combines unden and level, ie: I would like to see the effect each rate of unden at a particular level has on my explained variable. When I try dummy variables, not only I obtain different coefficients if I run the regression for one particular level but obviously I cannot incorporate all dummy variables at once. Do you have any idea how I could fix this and still see the different effects? I would really appreciate your help!

Eventually I want my equation to look like this: avg_dur c "unden at level1" "unden at level2" "unden at level 3" "unden at level 4" ... and the other explanatory variables.
Attachments
data-workfile-averagedur2.WF1
(40.51 KiB) Downloaded 1111 times

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

Re: Insufficient number of observations

Postby EViews Gareth » Tue May 07, 2013 9:55 am

It would be much better if you
(b) showed exactly what regression you ran.

jasperq
Posts: 8
Joined: Thu May 10, 2012 3:24 am

Re: Insufficient number of observations

Postby jasperq » Tue May 07, 2013 2:41 pm

This is the equation I wanted estimated: avg_dur c density1 density2 density3 density4 nrr epl realminwag.
I can't post the regression's outcome, since eviews gives an error. In this first regression I wanted to run I used an OLS model without any fixed effects.
Is there a better way to show what regression I want to run? Thanks for the reply!

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

Re: Insufficient number of observations

Postby startz » Tue May 07, 2013 2:57 pm

This is the equation I wanted estimated: avg_dur c density1 density2 density3 density4 nrr epl realminwag.
I can't post the regression's outcome, since eviews gives an error. In this first regression I wanted to run I used an OLS model without any fixed effects.
Is there a better way to show what regression I want to run? Thanks for the reply!
Your workfile doesn't include the variables density1 density2 density3 density4

You might want to make an equation object that has the exact regression you want to run and include that in the workfile you post.

jasperq
Posts: 8
Joined: Thu May 10, 2012 3:24 am

Re: Insufficient number of observations

Postby jasperq » Wed May 08, 2013 12:15 am

Ah I see, this one does.

I can't add an equation to my workfile as eviews will not let me run the regression. I think I did not understand you correctly.
Attachments
data-workfile-averagedur2.wf1
(45.51 KiB) Downloaded 918 times

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

Re: Insufficient number of observations

Postby startz » Wed May 08, 2013 5:54 am

You can add an equation by typing

Code: Select all

equation eq01
and then double-clicking on eq01 and filling out the specification.

But in any event, your problem is that for every observation at least one of density1 density2 density3 density4 is NA. You have zero complete observations.
Last edited by startz on Wed May 08, 2013 6:49 am, edited 1 time in total.

jasperq
Posts: 8
Joined: Thu May 10, 2012 3:24 am

Re: Insufficient number of observations

Postby jasperq » Wed May 08, 2013 6:35 am

Okay, thanks for your reply. I still can't seem to manage to estimate the equation. I know how to do this if there is no error given by eviews but I still can't specify it here.

Have you got an idea on how I would still be able to see the effect of the density at different values for "level"?

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

Re: Insufficient number of observations

Postby startz » Wed May 08, 2013 6:50 am

EViews is doing what it's supposed to. There is no way to estimate an equation without any data. You need to figure out why your variables are missing so much data.

jasperq
Posts: 8
Joined: Thu May 10, 2012 3:24 am

Re: Insufficient number of observations

Postby jasperq » Thu May 09, 2013 12:55 pm

Thanks for the replies, I chose to exclude some variables on a theoretical basis and this at lest allowed me to run the regression.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests