Re: [R] boxcox.fit error

From: <Bill.Venables_at_csiro.au>
Date: Sat, 08 Mar 2008 10:59:23 +1000


As the error message says: the transformation requires positive data

Your data has a minimum value at zero. That means it is merely non-negative.
Positive means all the values must be greater than zero. Strictly.

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of Alexys Herleym Rodriguez Avellaneda Sent: Saturday, 8 March 2008 1:40 AM
To: r-help_at_r-project.org
Subject: [R] boxcox.fit error

Hi,

Thakns all for your help

I am doing the next in my dataframe tabla, column pend1, because the Lilliefors (Kolmogorov-Smirnov) test give me a pvalue < alfa. (data no normal distribution). I need do a transformation with box-cox or other:

> bc <- boxcox.fit(tabla$pend1)
R send to me:
Error in boxcox.fit(tabla$pend1) : Transformation requires positive data

The summary for my data is:
> summary(tabla$pend1)

   Min. 1st Qu. Median Mean 3rd Qu. Max.     0.0 12.8 19.8 20.2 27.2 57.9
> length(tabla$pend1)
[1] 4408

Someone can help me?. What is the error?

Thanks

Alexys H



R-help_at_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_at_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. Received on Sat 08 Mar 2008 - 01:05:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 08 Mar 2008 - 01:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive