Significant Difference between two linear regression models I'm trying to predict weight based of age and height for people under 30 and people 30+
I have the original data set mydata
I have then created two subsets mydatalessthan30 and mydata30plus
Then I have
A = lm(mydatalessthan30$weight ~ mydatalessthan30$age + mydatalessthan30$height)
B = lm(mydata30plus$weight ~ mydata30plus$age + mydata30plus$height)
I then want to check if there is a significant difference between the models, how should I do this?
I have tried Anova(A,B) but this doesn't work

Adding to dariober's answer(*), I think it would be better to check if a first order effect of age on weight is present.
fit1 <- lm(weight ~ height, mydata)
fit2 <- lm(weight ~ age + height, mydata)

summary(fit2)
anova(fit1, fit2)

Without 1st order effects, don't try to find 2nd order ones. If any are found, they are spurious findings. But if there are reasons to believe that age has an effect on weight fit a model with the second order, interaction age*height.
fit3 <- lm(weight ~ age * height, mydata)

anova(fit1, fit3)  # redundant
anova(fit2, fit3)  # this is the one you want.


(*) The last sentence alone deserves an extra upvote.
