Re: [R] Confidence intervals with nls()

2008-08-02 Thread Ben Bolker
My best guess is that the code you were copying was from an objective (fitted) function that computed the gradient itself, so the "predict" result had a "gradient" attribute. Here's an alternative that (I think) works OK, but it comes with the usual warranty (none). ## simulate "data" O.age =

[R] Confidence intervals with nls()

2008-08-01 Thread Ranney, Steven
I have data that looks like O.lengthO.age 176 1 179 1 182 1 ... 493 5 494 5 514 5 606 5 462 6 491 6 537 6 553 6 432 7 522 7 625 8 661 8 687 10 704 10 615 12 (truncated) with a simple VonB growth model from within nls(): plot