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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 24, 2003 10:22 AM
> To: [EMAIL PROTECTED]
> 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
> 
> ______________________________________________
> [EMAIL PROTECTED] mailing list 
> https://www.stat.math.ethz.ch/mailman/listinfo> /r-help
> 

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

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to