I have two dependent variables, DV1 and DV2, and one independent variable IV. I want to ascertain if the fitted model between DV1 and IV explains the relationship between DV2 and IV well or not.
First I am fitting two separate models thus:
ModelA<-lm(DV1~IV)
ModelB<-lm(DV2~IV)
I then want to extract the fitted slope from Model A, and fit it to the relationship of DV2~IV. I'm then going to extract the residuals from this new fitted relationship, and compare them with the residuals from Model B.
In order to do this, I need to be able to specify the slope that is fitted to the relationship between DV2 and IV, but I don't know how to do so. I realise this is probably very simple! Does anyone have any suggestions?
Many thanks!