[R] Details about the boxcox function
Rui Barradas
ru|pb@rr@d@@ @end|ng |rom @@po@pt
Thu Jan 23 22:17:47 CET 2025
Às 18:22 de 23/01/2025, Daniel Lobo escreveu:
> Hi,
>
> I tried with
>
> library(MASS)
> methods('boxcox')
> # [1] boxcox.default* boxcox.formula* boxcox.lm*
>
> Then
>
>> boxcox.lm
>
> Error: object 'boxcox.lm' not found
>
> How to look into the codes of boxcox.lm?
>
> Thanks for your time
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Hello,
In such cases, try ?getAnywhere.
library(MASS)
getAnywhere("boxcox.lm")
#> A single object matching 'boxcox.lm' was found
#> It was found in the following places
#> registered S3 method for boxcox from namespace MASS
#> namespace:MASS
#> with value
#>
#> function (object, lambda = seq(-2, 2, 1/10), plotit = TRUE, interp =
(plotit &&
#> (m < 100)), eps = 1/50, xlab = expression(lambda), ylab =
"log-Likelihood",
#> ...)
#> {
#> m <- length(lambda)
#> if (is.null(object$y) || is.null(object$qr))
#> object <- update(object, y = TRUE, qr = TRUE, ...)
#> result <- NextMethod()
#> if (plotit)
#> invisible(result)
#> else result
#> }
#> <bytecode: 0x00000220c9e6f9d0>
#> <environment: namespace:MASS>
?NextMethod tells you to look in the default method.
boxcox.default
#> Error: object 'boxcox.default' not found
getAnywhere("boxcox.default")
Hope this helps,
Rui Barradas
--
Este e-mail foi analisado pelo software antivírus AVG para verificar a presença de vírus.
www.avg.com
More information about the R-help
mailing list