## Title : 民主党政権時と第二次安倍政権発足以降の比較 - 消費水準指数(世帯人員及び世帯主の年齢分布調整済)-2人以上の世帯 2016年7月 
## Raw Data Source : 総務省 
## Author : アセット・マネジメント・コンサルティング株式会社 http://am-consulting.co.jp 
## 作成日 : 2016-08-30 22:10:38 
## 特記 : 複数のワードで検索する際は半角スペースで区切ってください 
## 特記 : 表中、-9999はNAを意味します




総合(除く「住居」、「自動車等購入」、「贈与金」及び「仕送り金」)


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

t.test(x, y, var.equal = T, alternative = 'two.sided')
## 
##  Two Sample t-test
## 
## data:  x and y
## t = 1.2107, df = 81, p-value = 0.2295
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  -0.9701709  3.9859848
## sample estimates:
## mean of x mean of y 
##  102.8800  101.3721
t.test(x, y, var.equal = F, alternative = 'two.sided')
## 
##  Welch Two Sample t-test
## 
## data:  x and y
## t = 1.2123, df = 80.892, p-value = 0.2289
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
##  -0.9668971  3.9827111
## sample estimates:
## mean of x mean of y 
##  102.8800  101.3721
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 = 1.6998, p-value = 0.08966
## 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.92923, num df = 39, denom df = 42, p-value = 0.8197
## alternative hypothesis: true ratio of variances is not equal to 1
## 95 percent confidence interval:
##  0.4991228 1.7426687
## sample estimates:
## ratio of variances 
##           0.929233
brunner.munzel.test(x, y, alternative = 'two.sided')
## 
##  Brunner-Munzel Test
## 
## data:  x and y
## Brunner-Munzel Test Statistic = -1.7226, df = 68.505, p-value =
## 0.08947
## 95 percent confidence interval:
##  0.2659832 0.5171563
## sample estimates:
## P(X<Y)+.5*P(X=Y) 
##        0.3915698