Hello I performed a linear regression, my equation is Y = âo+ â1A + â2B + â3AB. Is there a way to separate interaction terms, say â3AB and plot it against a certain variable? Thanks, Andrew [[alternative HTML version deleted]]
Andrey A <avakoa <at> gmail.com> writes:> > Hello I performed a linear regression, my equation is Y = ?o+ ?1A + ?2B + > ?3AB. > Is there a way to separate interaction terms, say ?3AB and plot it against a > certain variable? > Thanks, AndrewNot quite sure what you mean here. Possibly something like L1 <- lm(y~A*B,data=mydata) p <- predict(L1,type="terms",terms="A:B") etc ?