search for: ssfunc

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

Did you mean: sfunc
2008 Sep 26
0
The 'data' argument and scoping in nls
...of relevant help pages, but nothing on a strategic level, what general approach should I use? Can someone point me in the right direction? I'm using nls to fit models where some non-optimised parameters are different lengths from the data, often matrices, something like this ... ---------- SSfunc <- selfStart( model = function(x, Coeff, A) { }, initial = function(mCall, data, LHS) { }, parameters = c("Coeff") ) y <- ... x <-... A <- ... nls(y ~ SSfunc(x, Coeff, A), data=...) -------------------- ... where A may be a matrix. This me...
2010 Aug 08
2
Importing arguments for use by functions in a script
...################################ ii<-i+1 iiend<-i*2 i<-0 for(ii in ii:iiend) { i<-i+1 func<-funcs[i,1] rets<-as.name(funcs[i,2]) args<-funcs[i,3] # remove .R from function sfunc<-substring(func,1,((nchar(func))-2)) # convert text string to an object ssfunc<-get(sfunc) # convert text string in rets to object pointer and run function systemtime<-system.time(eval(call("<-",rets,call("<-",rets,(ssfunc(args)))))) print(seqres) systimes[ii,1]<-func systimes[ii,2]<-"process" systimes[ii,3]&lt...