Skip to content
Prev 317470 / 398502 Next

e1071::skewness and psych::skew return NaN

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: