Page 1 of 1

how to use smpl twice in linreg

Posted: Tue Oct 06, 2020 1:00 pm
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

Re: how to use smpl twice in linreg

Posted: Tue Oct 06, 2020 1:12 pm
by TomDoan
Use .and. to combine the two conditions:

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