Re: [R] Change how minpack.lm:::summary.nls.lm calculates degrees of freedom

2020-08-19 Thread Valerio Leone Sciabolazza
Eric, you are right! If I run the code on a different instance, it works. There must be something in my old R environment that messed this up. Thank you very much for checking this out. Best, Valerio On Wed, Aug 19, 2020 at 11:36 AM Eric Berger wrote: > > Hi Valerio, > I did a copy-paste on your

Re: [R] Change how minpack.lm:::summary.nls.lm calculates degrees of freedom

2020-08-19 Thread Eric Berger
Hi Valerio, I did a copy-paste on your reproducible example and I had no problem with chol(nls.out$hessian). In addition to summary() you can look at str() to display the structure of any R object. > str(nls.out) List of 9 $ par :List of 3 ..$ a: num 8.99 ..$ b: num -1.01 ..$ c: num 6.

[R] Change how minpack.lm:::summary.nls.lm calculates degrees of freedom

2020-08-19 Thread Valerio Leone Sciabolazza
Dear R users, I want to modify how the degrees of freedom are calculated from the summary function of the package minpack.lm My first thought was to replicate how minpack.lm:::summary.nls.lm works, and modify the line of the code that is relevant for my task. However, for some reason I am not able