Dear Tal and Rosario, The bcPower() function in the car package computes Box-Cox power transformations; boxcox() in the MASS package estimates the response transformation parameter for the Box-Cox regression model (actually the profile log-likelihood for a range of variables of the parameter). The two functions do different things. The boxCox() function in the car package is a slight generalization of boxcox(), allowing for other families of transformations than the Box-Cox powers; the powerTransform() function in the car package is more general still, in that it will handle multivariate transformations, both conditional (like the Box-Cox regression model) and unconditional.
bcPower() was named box.cox() in earlier versions of the car package, associated with the first edition of the R [and S-PLUS] Companion to Applied Regression. In newer versions of the package, associated with the second edition of the book, written with Sandy Weisberg, this and other functions have been renamed to remove periods in function names. The older, "deprecated," names of the functions are retained as a courtesy to readers of the first edition. Best, John -------------------------------- John Fox Senator William McMaster Professor of Social Statistics Department of Sociology McMaster University Hamilton, Ontario, Canada http://socserv.mcmaster.ca/jfox > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Tal Galili > Sent: February-07-12 2:50 AM > To: Rosario Garcia Gil > Cc: r-help@R-project.org > Subject: Re: [R] box.cox > > Use: > > library(MASS) > ?boxcox > > > ----------------Contact > Details:------------------------------------------------------- > Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: > www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r- > statistics.com (English) > ---------------------------------------------------------------------- > ------------------------ > > > > > On Tue, Feb 7, 2012 at 8:47 AM, Rosario Garcia Gil > <m.rosario.gar...@slu.se>wrote: > > > Hello > > > > I am using box.cox() and I get this error message: > > > > Warning message: > > 'box.cox' is deprecated. > > Use 'bcPower' instead. > > See help("Deprecated") and help("car-deprecated"). > > > > > > I went to help but I did not understand the explanation, I am still > > wondering what is really happening. > > > > Thanks > > /R > > ______________________________________________ > > R-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.