0

我有以下格式的时间序列数据,其中包含 311 个观察值 - 前五个观察值的样本

我必须运行 Wavelet coherence。我在 r studio 中使用了以下代码

> proxy_1_v1 <- read_excel("proxy 1 v1.xlsx")
> View(proxy_1_v1)
> attach(proxy_1_v1)
> library(biwavelet)
biwavelet 0.20.19 loaded.

Attaching package: ‘biwavelet’

The following objects are masked _by_ ‘.GlobalEnv’:

    check.data, check.datum

> t1 = cbind(date, vix)
> t2 = cbind(date, tc1)
> nrands = 100
> wtc.AB = wtc(t1, t2, nrands = nrands)
Error in check.datum(y) : 
  The step size must be constant (see approx function to interpolate)

我不知道为什么我在 check.datum(y) 中收到错误。我下载了 biwavavelet 包 pdf,但没有关于此的信息。有人可以帮我解决这个错误。

4

0 回答 0