Marion Dumas
2009-Jun-07 09:14 UTC
[R] writing a panel function in coplot for displaying a non-linear regression model graphically
Hello,I am a little bit struggling with the following:
I would like to draw a coplot and in each panel draw the curve and display
the coefficients of the regression model y~a*x^b.
I thought of running nls(y~a*x^b,...) in panel=function(x,y...){} when
calling coplot. How can I do this?
Alternatively, I could do the regression before graphing with coplot and
just use the panel function to draw the resulting curve and print the
formula. Again, how to write the part panel=function(x,y...) to implement
this in coplot?
Thank you very much!!!
Marion
[[alternative HTML version deleted]]
