[R] Haw I get best lambda in box-cox

Liaw, Andy andy_liaw at merck.com
Tue Jun 24 16:45:00 CEST 2003


1.  Look up boxcox() in the package "MASS".

2.  Assume "bc" is an object returned by boxcox(...), you can do

  with(bc, x[which.max(y)])

    to find the best lambda.

HTH,
Andy

> -----Original Message-----
> From: crirocha at unicamp.br [mailto:crirocha at unicamp.br] 
> Sent: Tuesday, June 24, 2003 10:22 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Haw I get best lambda in box-cox
> 
> 
> 
> Hi all,
> 
> Does anyone know of a function that return the best lambda in 
> box-cox transformation?
> 
> many thanks for any help.
> 
> 
> -- 
> Cristiane S. Rocha
> Laboratorio Genoma Funcional - Bioinformática
> Centro de Biologia Molecular e Engenharia Genetica
> Universidade Estadual de Campinas
> Campinas - SP - Brasil
> Tel:(19)3788-1119
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list 
> https://www.stat.math.ethz.ch/mailman/listinfo> /r-help
> 

------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, cont... {{dropped}}




More information about the R-help mailing list