Dear S-colleagues:
The problem seems to be easy, but I failed to solve it.
Suppose that I have an expession:
y<-2+x+ a*sin(x)+b*exp(x)+c*x^1.3
I need to create a formula
y~x+sin(x)+exp(x)+x^1.3
And vice versa:
I have a formula
y~x+sin(x)+exp(x)+x^1.3
and coefficients: c0,c1,c2,c3,c4
I need to compute ( I mean to create an expression and evaluate it)
y<-c1+c2*x+ c3*sin(x)+c4*exp(x)+c5*x^1.3
Is that possible to automatically do this kind of conversions in s+?
Albert Horwath
Ass.Prof, Social Psychology
Ohio State University
Columbus, OH
Get FREE Email/Voicemail with 15MB at Lycos Communications at
http://comm.lycos.com
|