Re: [Rd] Documentation examples for lm and glm

2018-12-16 Thread Thomas Yee
Behalf Of Ben Bolker Sent: 13 December 2018 20:36 To: r-devel@r-project.org Subject: Re: [Rd] Documentation examples for lm and glm  Agree.  Or just create the data frame with those variables in it directly ... On 2018-12-13 3:26 p.m., Thomas Yee wrote: Hello, something that has been on my m

[Rd] Documentation examples for lm and glm

2018-12-13 Thread Thomas Yee
Hello, something that has been on my mind for a decade or two has been the examples for lm() and glm(). They encourage poor style because of mismanagement of data frames. Also, having the variables in a data frame means that predict() is more likely to work properly. For lm(), the variables shou

[Rd] Extending deriv3()

2007-10-14 Thread Thomas Yee
Hello, I was wondering if the functions deriv3(), deriv() etc. could be extended to handle psigamma() and its special cases (digamma(), trigamma() etc.). From the error message it seems that 'psigamma' needs to be added to the derivatives table. This might be easy since psigamma() has a deriv argu