Displaying 1 result from an estimated 1 matches for "mynls".
Did you mean:
mynas
2005 Dec 15
0
nls: constraints (lower/upper) (PR#8401)
...b*x+c*I(x^2),start=c(a=1,b=1,c=0.1),algorithm="port")
nls(y~a+b*x+c*I(x^2),start=c(a=1,b=1,c=0.1),algorithm="port",lower=c(0,0,0))
## Error in model.frame(formula, rownames, variables, varnames, extras,
## extranames, :
## variable lengths differ
## hack nls()
sink("mynls.R")
nls
sink()
## replace line 34:
## ORIGINAL:
## mf$start <- mf$control <- mf$algorithm <-
## mf$trace <- mf$model <- NULL
## REVISED:
## mf$start <- mf$control <- mf$algorithm <- mf$trace <- mf$model <-
## mf$lower <- mf$upper <- NULL
## add &...