Displaying 2 results from an estimated 2 matches for "y_a".
Did you mean:
_a
2005 Apr 01
1
optim problem, nls regression
...near regression by minimising the sum of the sum of
squares.
The model is number[2]-(x/number[1])^number[3]
Number [2] and number [1] change as the data changes but for all the set of
data number[3] must be identical.
I have 3 set of data (x1,y1), (x2,y2), (x3,y3).
x_a<-c(0,0.5,1,1.5,2,3,4,6)
y_a<-c(5.4,5,4.84,4.3,4,2,1.56,1.3)
x_b<-c(0,1,2,3,4,5,6,7,8,9,10,11,12)
y_b<-c(5.34,4.98,4.66,4.06,3,3.4,2.7,2.9,2.6,2.6,1.9,1.3,1.4)
x_c<-c(0,3,6,8,10,12,14,16,18,20,24,26,28,30)
y_c<-c(5.5,5.1,4.3,4,3.7,3.2,3.04,2.778,2.56,2.25,1.78,1.44,1.32,1.2)
x<-c(x_a,x_b,x_c)
y<-c(y_a,y...
2005 Apr 08
0
TR: The results of your email commands
...lp me, it will be great....
I have try an other program where y and x are directly calculate in sce
function but the time of running was to long.
Thanks in advance,
Anne KERVAHU
rm(list=ls())
nbr=10
#list of data
x_a<-c(0,0.5,1,1.5,2,3,4,6,8,15,20,40,60,80,120)
y_a<-c(5.4771213,5.0791812,4.8450980,4.3010300,4,2.30103,1.5563025,1.30103,1
,1.6434527,0.60206,0.60206,0.30103,0,0.4771213)
x_b<-c(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14)
y_b<-c(5.3424227,4.9867717,4.6627578,4.0606978,3.07182,3.4771213,2.7993405,2
.9395193,2.69897,2.6127839,1.9777236,...