Sample Manipulation

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Artur Patricio
Posts: 8
Joined: Thu May 14, 2015 4:48 am

Sample Manipulation

Postby Artur Patricio » Tue May 26, 2015 2:16 am

Hi everyone I would like to ask for your help for the following problem that I am facing:

I have a panel data database and I would like to run a model for just some cross section observations. For intance I have economic variables in data series since 1980 for a lot of countries. However in the regression I wan to run I would like to include not all countries but only some countries. I know that when we are estimating an equation in the sample we can do this specification but I guess how can I do it ? Does anyone knows how to help me ?

Thanks a lot

Artur

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

Re: Sample Manipulation

Postby EViews Gareth » Tue May 26, 2015 8:04 am

Easiest way is to use the @inslist function.

Code: Select all

smpl if @inlist(country, "USA FRANCE GERMANY")=1


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests