Re: [Rd] documentation bug for isoreg example (PR#10352)

From: <maechler_at_stat.math.ethz.ch>
Date: Fri, 19 Oct 2007 09:50:49 +0200 (CEST)


>>>>> "BT" == Benjamin Tyner <btyner_at_gmail.com>
>>>>> on Thu, 18 Oct 2007 15:15:06 +0200 (CEST) writes:

    BT> Full_Name: Benjamin Tyner
    BT> Version: 2.6.0 (43063)
    BT> OS: WinXP
    BT> Submission from: (NULL) (171.161.224.10)


    BT> At the end of the examples for isoreg, there is

    BT> cat("R^2 =", formatC(sum(residuals(ir4)^2) / (9*var(y4)), digits=2),"\n")

    BT> I think this should be

    BT> cat("R^2 =", formatC(1 - sum(residuals(ir4)^2) / (9*var(y4)), digits=2),"\n"

I think so too, and I'm infinitely embarrassed because I think I had put that example there {maybe cut & paste from somewhere, but still...}

Martin Maechler, ETH Zurich.



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 19 Oct 2007 - 08:03:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 25 Oct 2007 - 11:37:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.