search for: wrappernl

Displaying 1 result from an estimated 1 matches for "wrappernl".

Did you mean: wrappernls
2009 Jul 20
1
Argument problem in function wrapper
...having a problem with one of the arguments (weightsArgument) which seems not to reach nls even if we explicitly assign it in the function call. We are attaching the simplest code reproducing the error and the output calling the wrapper and calling nls directly. We are using R 2.9.0 library(stats) wrappernls <- function(modelArgument,dataArgument,startArgument,weightsArgument) { F.mod <-try(nls(formula=modelArgument,data=dataArgument,start=startArgument, weights=weightsArgument, control=nls.control(maxiter = 500, tol = 1e-05, minFactor = 1/102400)),silent=TRUE) return(F.mod) } F<-c(0.4091867...