s-news
[Top] [All Lists]

formula conversion

To: "splus" <s-news@wubios.wustl.edu>
Subject: formula conversion
From: "albert horwath" <al_horwath@lycos.com>
Date: Wed, 13 Dec 2000 03:31:57 -0800
Organization: Lycos Communications (http://comm.lycos.com:80)
Reply-to: al_horwath@lycos.com
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

<Prev in Thread] Current Thread [Next in Thread>