I am interested in the connection between a multiple linear regression including a dummy variable (0/1) and two separated regressions split up by this dummy variable, i.e. two distinct regressions for each category (0-1). The question is: How are these numbers related? Can they be translated into each other? Here is a numeric examples in R:
lm(mpg ~ disp + vs, data=mtcars)
#Coefficients:
# (Intercept) disp vs
# 27.9493 -0.0369 1.4950
lm(mpg ~ disp, data=mtcars[mtcars$vs==0,])
#Coefficients:
# (Intercept) disp
# 25.63755 -0.02937
lm(mpg ~ disp, data=mtcars[mtcars$vs==1,])
#Coefficients:
# (Intercept) disp
# 34.03526 -0.07156