-2
$\begingroup$

Possible Duplicate:
How should I transform non-negative data including zeros?
Error in boxcox.default(y ~ x) : response variable must be positive

I want to perform box cox transformation on data using R tool .If anybody can help me with examples or commands to show how it is done in R tool. Thank you in advance.

My main problem is I want to take log of data but if data entries contain 0 then log 0 becomes infinite .To handle this situation I am searching for the past 3 days .I found one solution to use boxcox transformation..but again it is giving this error.

$\endgroup$

marked as duplicate by Andy W, gung, chl Jan 9 '13 at 13:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0
$\begingroup$

Have a look at the boxcox function (documentation here).

$\endgroup$
  • $\begingroup$ I have seen this link earlier..I am getting this "Error in boxcox.default(y ~ x) : response variable must be positive" error when I am using boxcox.. $\endgroup$ – Komal Jan 9 '13 at 7:44
  • $\begingroup$ My main problem is I want to take log of data but if data entries contain 0 then log 0 becomes infinite .To handle this situation I am searching for the past 3 days .I found one solution to use boxcox transformation..but again it is giving this error. $\endgroup$ – Komal Jan 9 '13 at 7:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.