Hi everyone, I have a formula like this:
f <- as.formula(y ~ p0a * exp(-0.5 * ((x - p1a)/p2a)^2))
I would like to "dynamically" provide starting values for p0a, p1a, p2a. Is
there a way to do it?
#Params estimates
p <- c(12, 10, 1)
# This is where I have difficulties
mystart <- substitute(...)
nls(formula = f, start = mystart)
Regards,
Philippe
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.