Re: [R] specifying multiple parameter starting values in nlm

2003-07-08 Thread Spencer Graves
Did you work through the examples at the end of the "nlm" documentation? The first example there shows that "nlm" expects a single vector argument over which f is to be minimized. This suggests that your first construction should not work, while your second should be closer. Also, did

[R] specifying multiple parameter starting values in nlm

2003-07-07 Thread Michael Rennie
Hi there I am having trouble figuring out how to get an nlm function to report estimates for two parameter values in an estimation. The way I've got it goes something like this: f <- function (q, r) { here, I have a second loop which uses q, r to give me values for c, d below. a and b are a