search for: yaux

Displaying 2 results from an estimated 2 matches for "yaux".

Did you mean: aux
2012 Mar 08
1
sas retain statement in R or fitting differene equations in NLS
...value of y. yhat can be calculated as follows: # This code illustrates how I could simulate the expected values of y if I knew the values of the parameters tau and b. # but in reality I would like to estimate them. # code is for illustration of the principles and is not meant to be functional!! yaux[1]<-0 b<- a_number # b would have to become estimated by nls or nlme tau<- another_number # tau would also be estimated in nls or nlme for (t in 2:1000) { yaux[t+1] <- yaux[t] + (X1-yaux[t])/tau yhat[t+1] <- yaux[t+1]*X2[t+1]/(X2[t+1]+b) } Now, my problem is that I do not know the v...
2012 Mar 06
0
Fitting difference models in R (nls, nlme)
...value of y. yhat can be calculated as follows: # This code illustrates how I could simulate the expected values of y if I knew the values of the parameters tau and b. # but in reality I would like to estimate them. # code is for illustration of the principles and is not meant to be functional!! yaux[1]<-0 b<- a_number # b would have to become estimated by nls or nlme tau<- another_number # tau would also be estimated in nls or nlme for (t in 2:1000) { yaux[t+1] <- yaux[t] + (X1-yaux[t])/tau yhat[t+1] <- yaux[t+1]*X2[t+1]/(X2[t+1]+b) } Now, my problem is that I do not know the v...