Can someone help me to explain the inside meaning of using regress with if condition? For example, run the code:
sysuse auto
reg price mpg turn if turn>40
I can get the estimates. I thought it is the same if i run:
sysuse auto
drop if turn > 40
reg price mpg turn
But they produce different estimates. What is the reason?
Thanks in advance!
sysuse auto
reg price mpg turn if turn>40
I can get the estimates. I thought it is the same if i run:
sysuse auto
drop if turn > 40
reg price mpg turn
But they produce different estimates. What is the reason?
Thanks in advance!
Comment