Re: [R] Box-cox transformation

2014-07-07 Thread Ravi Varadhan
Thank you. It is very helpful. Ravi -Original Message- From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] Sent: Monday, July 07, 2014 4:15 PM To: Ravi Varadhan Cc: r-help@r-project.org Subject: Re: [R] Box-cox transformation Dear Ravi, In my previous example, I used the residuals, so

Re: [R] Box-cox transformation

2014-07-07 Thread Joshua Wiley
; > Thanks, > Ravi > > -Original Message- > From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] > Sent: Sunday, July 06, 2014 11:34 PM > To: Ravi Varadhan > Cc: r-help@r-project.org > Subject: Re: [R] Box-cox transformation > > Hi Ravi, > > Deviance is the SS

Re: [R] Box-cox transformation

2014-07-06 Thread Joshua Wiley
Hi Ravi, Deviance is the SS in this case, but you need a normalizing constant adjusted by the lambda to put them on the same scale. I modified your example below to simplify slightly and use the normalization (see the LL line). Cheers, Josh ## require(MASS)

[R] Box-cox transformation

2014-07-06 Thread Ravi Varadhan
Hi, I am trying to do Box-Cox transformation, but I am not sure how to do it correctly. Here is an example showing what I am trying: # example from MASS require(MASS) boxcox(Days+1 ~ Eth*Sex*Age*Lrn, data = quine, lambda = seq(-0.05, 0.45, len = 20)) # Here is My attempt at getting t

Re: [R] Box-Cox transformation in R

2011-05-04 Thread Dennis Murphy
Hi: Start here: library(sos)# Install first if necessary findFn('Box-Cox') This search finds 131 matches; the basic Box-Cox transformations for regression are found in the MASS and car packages. For other situations, consult the packages and functions identified from the sos search. HTH, De

Re: [R] Box-Cox transformation in R

2011-05-04 Thread Patrick Breheny
On 05/04/2011 12:53 PM, FMH wrote: Hi, Could any one please help how I can transform data based on Box-Cox Transformations in R. Any helps will be much appreciated. thanks, Kagba [[alternative HTML version deleted]] See the boxcox function in the MASS package.

[R] Box-Cox transformation in R

2011-05-04 Thread FMH
Hi,   Could any one please help how I can transform data based on Box-Cox Transformations in R.   Any helps will be much appreciated.   thanks, Kagba [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.c

Re: [R] Box-Cox Transformation: Drastic differences when varying added constants

2010-05-18 Thread Frank E Harrell Jr
On 05/18/2010 10:41 PM, Greg Snow wrote: Have you read the BoxCox paper? It has the theory in there for dealing with an offset parameter (though I don't know of any existing functions that help in estimating both lambdas at the same time). Though another important point (in the paper as well

Re: [R] Box-Cox Transformation: Drastic differences when varying added constants

2010-05-18 Thread Greg Snow
half Of Holger Steinmetz > Sent: Sunday, May 16, 2010 6:22 AM > To: r-help@r-project.org > Subject: [R] Box-Cox Transformation: Drastic differences when varying > added constants > > > Dear experts, > > I tried to learn about Box-Cox-transformation but found the following &

Re: [R] Box-Cox Transformation: Drastic differences when varying added constants

2010-05-17 Thread Bill Pikounis
Hi Holger, I would also highly recommend you look at the ?boxcox and ?logtrans functions in the MASS package. There is also a very illuminating, concise discussion about their use on Pages 170 - 172 of Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. with

Re: [R] Box-Cox Transformation: Drastic differences when varying added constants

2010-05-16 Thread Peter Ehlers
On 2010-05-16 6:22, Holger Steinmetz wrote: Dear experts, I tried to learn about Box-Cox-transformation but found the following thing: When I had to add a constant to make all values of the original variable positive, I found that the lambda estimates (box.cox.powers-function) differed dramati

[R] Box-Cox Transformation: Drastic differences when varying added constants

2010-05-16 Thread Holger Steinmetz
Dear experts, I tried to learn about Box-Cox-transformation but found the following thing: When I had to add a constant to make all values of the original variable positive, I found that the lambda estimates (box.cox.powers-function) differed dramatically depending on the specific constant chos