how to use smpl twice in linreg

For questions and discussion related to reading in and working with data.
Frank
Posts: 15
Joined: Fri Jun 11, 2010 7:18 am

how to use smpl twice in linreg

Unread post by Frank »

Hi Tom,

I'd like to do a regression model based on two variables, so I need to partition the data into four subgroups by using two variables.
For example:

linreg(smpl=mbratio>%mean, smpl=FCF>median)

but it doesn't work. Or, I need to use SAMPLE to partition the data in the first step?


Frank
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: how to use smpl twice in linreg

Unread post by TomDoan »

Use .and. to combine the two conditions:

inreg(smpl=mbratio>%mean.and.FCF>median)
Post Reply