Page 1 of 1

Delete observation from a panel data

Posted: Tue Feb 28, 2012 9:49 pm
by michelleli
Hi,
I am running a logit model using a panel data. After all the univariate analysis and regression analysis, I found I included an observation that should not be included. My question is how can I delete the observation from my workfile completely. After doing so, are the results of univariate analysis and regression analysis going to change automatically ?


Cheers

Re: Delete observation from a panel data

Posted: Wed Feb 29, 2012 8:44 am
by EViews Gareth
Usually the best way is to just not include it in the sample.

In panels this is a little more tricky, but as an example, say you want to exclude the observation at 1995 for the country USA (in an annual workfile from 1990-2000 with countries as the cross-section id), you would set the sample as follows:

Code: Select all

smpl 1990 1994 1996 2000 if country<>"USA"