Page 1 of 1

Estimating sub-samples within the sample

Posted: Tue Jun 05, 2018 3:24 am
by mikeguima
Hello everyone.

I'd like to ask you one question regarding Eviews estimation.

I'm estimating a panel data model with multiple firms from multiple industries and would like to estimate the model for each industry individually now. My question is if there's a way to do that in Eviews (meaning telling the software to estimate only observations pertaining to industry X or Y within the sample I've uploaded) of if I have to split the sample in industries manually outside eviews (in Excel) and upload and estimate each of them individually. The later would take considerably more work, hence my asking this.

Thank you very much in advance!

Re: Estimating sub-samples within the sample

Posted: Tue Jun 05, 2018 5:48 am
by startz
Use the smpl command. Something like

Code: Select all

smpl if industry="iron"

Re: Estimating sub-samples within the sample

Posted: Tue Jun 05, 2018 8:29 am
by mikeguima
startz wrote:Use the smpl command. Something like

Code: Select all

smpl if industry="iron"

Wow that worked wonders! Thank you so much!!!