1

我试图对一些数据运行方差分析,但它给了我以下错误:

Call:
   aov(formula = speaker ~ CoG * skewness * kurtosis, data = total)
Error in levels(x)[x] : only 0's may be mixed with negative subscripts
In addition: Warning messages:
1: In model.response(mf, "numeric") :
  using type="numeric" with a factor response will be ignored
2: In Ops.factor(y, z$residuals) : - not meaningful for factors

我试图看看三个变量 CoG、偏度和峰度对说话人的预测效果如何,以及它们在说话人之间是否显着。我的数据副本可以在这里找到:

https://www.dropbox.com/s/blzpb12bemv6kuc/All.csv

谁能帮助解释错误在说什么以及它发生在哪里?

4

1 回答 1

2

这是我在 stats.stackexchange.com 上给出的答案

听起来您正在尝试进行多项回归。也许查找有关的信息。

这是一个很好的开始:

http://www.ats.ucla.edu/stat/r/dae/mlogit.htm

例如

install.packages('nnet')
library(nnet)

test<-multinom(formula = as.factor(speaker) ~ CoG * skewness * kurtosis, data = total)


z <- summary(test)$coefficients/summary(test)$standard.errors
# 2-tailed z test
p <- (1 - pnorm(abs(z), 0, 1)) * 2
于 2013-10-17T21:02:52.803 回答