-2
我願做以下配對t檢驗:兩配對t檢驗p值= NA和t = NaN的
str1<-' ENSEMBLE 0.934 0.934 0.934 0.934 '
str2<-' J48 0.934 0.934 0.934 0.934 '
df1 <- read.table(text=scan(text=str1, what='', quiet=TRUE), header=TRUE)
df2 <- read.table(text=scan(text=str2, what='', quiet=TRUE), header=TRUE)
t.test (df1$ENSEMBLE, df2$J48, mu=0 , alt="two.sided", paired = T, conf.level = 0.95)
我得到以下結果:
Paired t-test
data: df1$ENSEMBLE and df2$J48
t = NaN, df = 3, p-value = NA
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
NaN NaN
sample estimates:
mean of the differences
0
爲什麼我懂嗎?