Insufficient number of observations

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

gishena
Posts: 12
Joined: Tue Jan 19, 2016 9:55 am

Insufficient number of observations

Postby gishena » Sun Apr 03, 2016 2:56 am

When I tried a certain regression with 1 dependable variable and about 10 independable variables I get the error "insuffiicent number of observations. I have about 350000 observations so I really do not get the error. Furthermore, I wanted to have panel data as I have multiple values over many time periods and it did not work??? Please help me as it is about my master thesis...

Kind regards.
gishena

gishena
Posts: 12
Joined: Tue Jan 19, 2016 9:55 am

Re: Insufficient number of observations

Postby gishena » Sun Apr 03, 2016 4:54 am

Edit: I got what the problem was with the insufficent number of observations but I still can not get the excel file I have imported into EViews as panel data.

This is the thing I have: http://postimg.org/image/b3ykzfs4b/

How do I import it as structured panel data as I have multiple values over multiple time periods?

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

Re: Insufficient number of observations

Postby EViews Gareth » Sun Apr 03, 2016 7:07 am

You need to define your cross-section identifier.

gishena
Posts: 12
Joined: Tue Jan 19, 2016 9:55 am

Re: Insufficient number of observations

Postby gishena » Tue Apr 05, 2016 1:35 am

I did. It gives me an error as some values are N/A

gishena
Posts: 12
Joined: Tue Jan 19, 2016 9:55 am

Re: Insufficient number of observations

Postby gishena » Tue Apr 05, 2016 2:09 am

I`ll upload the excel file I`m using. I am getting some no sense errors which I should not be getting. At the cross section ID series I type Company name and I get the error: Company is not defined. I want to import it as a structured panel so give me a hand please.

I give a link to the excel file, it is over 150 mb big.

https://drive.google.com/open?id=0B7m3_ ... lhaMC1kd2M

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

Re: Insufficient number of observations

Postby EViews Gareth » Tue Apr 05, 2016 8:11 am

Assuming you are talking about the "stock returns" sheet, couple of observations...

If I open that Excel file just by dragging it on to EViews and hitting "Finish", EViews automatically detects it as a panel.

I don't know what you're doing, but there is no column titled "Company", which is probably why you're getting an error in EViews.

gishena
Posts: 12
Joined: Tue Jan 19, 2016 9:55 am

Re: Insufficient number of observations

Postby gishena » Tue Apr 05, 2016 11:18 pm

I am talking about the sheet called "WRDS". When importing the file, I chose this sheet. Is it possible to import it as a structured panel?

Furthermore, I have one more question and don`t want to open another thread. Can you tell me the command to winsorize all variables at the 1st and 99th percentile to reduce the effect of outliers and miscoded firm-year observations? I downloaded the trim add in and supposedly installed it but after I estimate an equation and go under proc add-ins there turns out to be no add-ins for this object.

Manually I generated those series:

series lvg_q = @recode(lvg>@quantile(lvg,.99),@quantile(lvg,.99),@recode(lvg<@quantile(lvg,.01),@quantile(lvg,.01),lvg))
but I got syntax error

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

Re: Insufficient number of observations

Postby EViews Gareth » Wed Apr 06, 2016 7:32 am

That sheet doesn't contain panel data. More precisely, the date and company name columns do not uniquely identify the observations. For example rows 154760 and 154761.

The syntax for your winsorizing is correct (and worked for me).

gishena
Posts: 12
Joined: Tue Jan 19, 2016 9:55 am

Re: Insufficient number of observations

Postby gishena » Thu Apr 07, 2016 5:06 am

But I was trying to use the column "Correct CUSIP and Year" as ID series which is unique.

And sorry for the silly questions, but will my regressions give different results just because I used it as an unstructured panel when compared to a panel?

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

Re: Insufficient number of observations

Postby EViews Gareth » Thu Apr 07, 2016 7:39 am

But I was trying to use the column "Correct CUSIP and Year" as ID series which is unique.
Previously you said you were using company name.....

Either way, they're not unique. Look at the example I gave you.

And sorry for the silly questions, but will my regressions give different results just because I used it as an unstructured panel when compared to a panel?
Depends on the regression.

gishena
Posts: 12
Joined: Tue Jan 19, 2016 9:55 am

Re: Insufficient number of observations

Postby gishena » Fri Apr 08, 2016 12:45 am

I finally managed to get the add-in working. If I want to winsorise and the 99th and 1th percentile at the add-in I have to use the values 0,1 and 0,99 right?

And can somebody help me to edit the excel file so that I can import it as a structured panel??

acemi
Posts: 46
Joined: Thu Jun 23, 2016 10:28 pm

Re: Insufficient number of observations

Postby acemi » Sat Nov 26, 2016 9:22 am

Hello, I'm trying to estimate following equation by L-S estimation method in eviews 7. I get, "insufficient number of obs" error. I checked that there isnt any missing data or variables. Previously I got "log of negative number" error but I fixed it by using EviewsGareth's solution on a related post saying "Check your setting under Options->Auto-Series in Stats. It should be at "Treat evaluation errors as NAs"."

Can anyone give me a clue about what am I missing ? (My file is attached below, I want to estimate coefficients 1 to 5.)
Thank you in advance.

log(y) = (1/((1-c(2))*(1-c(3))-c(1)))*((1-exp(-c(1)*@trend))*c(2)*(1-c(3))*log(s)+(1-exp(-c(1)*@trend))*c(1)*log(l)+(1-exp(-c(1)*@trend))*c(4)*log(fi)+(1-exp(-c(1)*@trend))*log(c(5)+(1-c(2))*c(1)*n)+(1-exp(-c(1)*@trend))*c(2)*(1-c(3))*log((n+delta)+(c(1)*n))+(1-exp(-c(1)*@trend))*log(y(-1)))
Attachments
eviewsdeneme.wf1
(28.13 KiB) Downloaded 661 times

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

Re: Insufficient number of observations

Postby EViews Gareth » Sat Nov 26, 2016 9:56 am

You'll have to use starting values that do not make the log terms negative.

acemi
Posts: 46
Joined: Thu Jun 23, 2016 10:28 pm

Re: Insufficient number of observations

Postby acemi » Sat Nov 26, 2016 10:03 am

Hello Eviews Gareth,

Thank you for your prompt reply and excuse my incomprehension. Can you give me an concrete example in what you refer to in your reply for example from my data ?
Thank you very much.

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

Re: Insufficient number of observations

Postby EViews Gareth » Sat Nov 26, 2016 11:00 am

Code: Select all

log(c(5)+(1-c(2))*c(1)*n)
That has to be possible


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests