Re: [R] NextMethod in boxcox

2014-02-15 Thread David Winsemius
On Feb 14, 2014, at 11:04 PM, Gene Leynes wrote: > How can I see the code for boxcox.default? http://cran.r-project.org/doc/Rnews/Rnews_2006-4.pdf > >> library(MASS) >> boxcox.default > Error: object 'boxcox.default' not found >> > > [[alternative HTML version deleted]] Please learn t

Re: [R] NextMethod in boxcox

2014-02-15 Thread Gene Leynes
How can I see the code for boxcox.default? > library(MASS) > boxcox.default Error: object 'boxcox.default' not found > [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] NextMethod in boxcox

2014-02-14 Thread Thomas Lumley
On Fri, Feb 14, 2014 at 7:38 PM, Bert Gunter wrote: > However, note that I DID get it WRONG: > > The method invoked by the NextMethod() call in the boxcox.formula > method is boxcox.default, NOT boxcox.lm. > > The method chain is slightly unusual here, because of the liberal way S3 objects are de

Re: [R] NextMethod in boxcox

2014-02-14 Thread Gene Leynes
I found some good explanations of what the Box Cox transform for anyone who happens upon this thread while searching for boxcox details: This is the best explanation I found of what how the Box Cox transformation is calculated. It explains why QR decomposition is used, has nice code examples that

Re: [R] NextMethod in boxcox

2014-02-14 Thread Gene Leynes
In searching for NextMethod on http://www.rseek.org/ I found some helpful tutorials on S3 and S4 methods. Between your answer and the tutorials, I think I'm starting to understand. The NextMethod is just a dispatcher type of thing that doesn't do anything directly. I think you're saying that whe

Re: [R] NextMethod in boxcox

2014-02-14 Thread Gene Leynes
Yes I read the help on NextMethod. In fact, since people frequently respond with "did you read the help" I mentioned that I had read the help in my original post. I'm very grateful for the time and effort that people put into answering questions, so I always try to answer the question myself firs

Re: [R] NextMethod in boxcox

2014-02-14 Thread Bert Gunter
However, note that I DID get it WRONG: The method invoked by the NextMethod() call in the boxcox.formula method is boxcox.default, NOT boxcox.lm. Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge i

Re: [R] NextMethod in boxcox

2014-02-14 Thread Bert Gunter
Inline. Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." H. Gilbert Welch On Fri, Feb 14, 2014 at 4:19 PM, Gene Leynes wrote: > In searching for NextMethod on http://www.rseek.org/ I

Re: [R] NextMethod in boxcox

2014-02-14 Thread Bert Gunter
Well, since this is really a question about understanding how S3 methods work, and this is not the place for a tutorial, I think what you need to do is search out a tutorial that you understand. But very briefly, it does what it says. The "object" argument is supplied to the boxcox generic; lm() t

Re: [R] NextMethod in boxcox

2014-02-13 Thread Bert Gunter
Have you tried: ?NextMethod ? -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." H. Gilbert Welch On Thu, Feb 13, 2014 at 2:17 PM, Gene Leynes wrote: > I was trying to under

[R] NextMethod in boxcox

2014-02-13 Thread Gene Leynes
I was trying to understand the boxcox function in MASS to get a better understanding of where and how the log-Likelihood values are calculated. By using "debug(boxcox)" I found this code while running the examples: > m <- length(lambda) > object <- lm(object, y = TRUE, qr = TRUE, ...) >