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, Andrew

  Not 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

?

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to