使用R中的Mann Kendall检验分析趋势

时间:2019-08-20 13:53:47

标签: r time-series

我有这个数据集DATA,我想执行时间序列并使用Mann Kendall测试分析趋势,

我的代码在这里

c<-acf(df$value,lag.max=1)
dim(c$acf)
c$acf[[2,1,1]]
df$prewhit1<-c$acf[[2,1,1]]*df$value
prewhitseries<-data.frame(with(df, (df$value[-1] - prewhit1[-length(prewhit1)])))
autocordata<-cbind(df,prewhitseries)
MannKendall(autocordata$prewhitseries)

0 个答案:

没有答案