Hello,
Just remembered, you can see how many values are zero, and since it's
only one value, remove it and log the rest.
sum(dat == 0) # 1
d2 <- dat[dat != 0]
library(psych)
skew(log(d2))
[1] 0.6089985
Hope this helps,
Rui Barradas
Em 13-02-2013 17:59, Rui Barradas escreveu:
Hello,
Tha
Hello,
That value means that some values of your data are negative or zero. A
simple inspection shows that
any(dat < 0) # FALSE
any(dat == 0) # TRUE
Solution: don't log your data
Hope this helps,
Rui Barradas
Em 13-02-2013 16:55, Stephen Politzer-Ahles escreveu:
Hello everyone,
Does an
Hi everyone,
Please disregard my last message, I found a 0 in the vector, which is
what was causing problems with the log and reciprocal data.
Best,
Steve
On Wed, Feb 13, 2013 at 10:55 AM, Stephen Politzer-Ahles
wrote:
> Hello everyone,
>
> Does anyone know what would cause the skewness() funct
3 matches
Mail list logo