[R] plotting fit from ols( rcs() )

x to_rent_2000 at yahoo.com
Sat May 2 22:09:45 CEST 2009


I have: f <- ols( y1 ~ (rcs(x1,3) + rcs(x2,3) + rcs(x1,3) %ia% rcs(x2,3) ) )

Then I do: plot(f)

This plots y1 against x2 for a given value of x1.

Is there a way to make it *also* plot y1 against x1 for a given value of x2?

If not, I guess I can do coplot(y1 ~ x1 | x2).

Thanks in advance,
sp




More information about the R-help mailing list