## Title : 食料(酒類を除く)及びエネルギーを除く総合_前年同月比_東京都区部 2016年8月民主党政権時と第二次安倍政権発足以降の比較 
## Raw Data Source : 総務省 
## Author : アセット・マネジメント・コンサルティング株式会社 http://am-consulting.co.jp 
## 作成日 : 2016-08-29 21:52:52 
## 特記 : 複数のワードで検索する際は半角スペースで区切ってください 
## 特記 : 表中、-9999はNAを意味します




食料(酒類を除く)及びエネルギーを除く総合_前年同月比_東京都区部


・2009-09~2012-12 : x
・2013-01~2016-08 : y

t.test(x, y, var.equal = T, alternative = 'two.sided')
## 
##  Two Sample t-test
## 
## data:  x and y
## t = -10.648, df = 82, p-value < 2.2e-16
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  -1.933453 -1.324729
## sample estimates:
##  mean of x  mean of y 
## -1.0450000  0.5840909
t.test(x, y, var.equal = F, alternative = 'two.sided')
## 
##  Welch Two Sample t-test
## 
## data:  x and y
## t = -11.067, df = 53.208, p-value = 2.045e-15
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  -1.924313 -1.333868
## sample estimates:
##  mean of x  mean of y 
## -1.0450000  0.5840909
TwoTimeSeriesData <- c(x, y)
Period <- factor(c(rep("Period1", length(x)), rep("Period2", length(y))))
wilcox_test(TwoTimeSeriesData ~ Period, distribution = "exact")
## 
##  Exact Wilcoxon-Mann-Whitney Test
## 
## data:  TwoTimeSeriesData by Period (Period1, Period2)
## Z = -7.4959, p-value < 2.2e-16
## alternative hypothesis: true mu is not equal to 0
var.test(x, y, alternative = 'two.sided')
## 
##  F test to compare two variances
## 
## data:  x and y
## F = 0.11035, num df = 39, denom df = 43, p-value = 2.141e-10
## alternative hypothesis: true ratio of variances is not equal to 1
## 95 percent confidence interval:
##  0.05955247 0.20643267
## sample estimates:
## ratio of variances 
##          0.1103503
brunner.munzel.test(x, y, alternative = 'two.sided')
## 
##  Brunner-Munzel Test
## 
## data:  x and y
## Brunner-Munzel Test Statistic = 35.273, df = 65.494, p-value <
## 2.2e-16
## 95 percent confidence interval:
##  0.9475739 1.0012897
## sample estimates:
## P(X<Y)+.5*P(X=Y) 
##        0.9744318