lundi 14 août 2017

Zyp Package R Trend Analysis

I want to test for trend in my autocorrelated data. I want to go with the "zyp" package and the code below

zyp.trend.dataframe(indat, metadata.cols, method=c("yuepilon", "zhang"), conf.intervals=TRUE, preserve.range.for.sig.test=TRUE)

My code looks something like this:

zyp.trend.dataframe(ts.Kendall, 1,"zhang")

But I always get this Error

Error in [.data.frame(indat, , (1 + metadata.cols):ncol(indat)) : undefined columns selected

I am not sure what metadata.cols stands for but I thought it's just the column I want to test for trend? Is that correct? My DF just got 1 column so yeah thats the one I want to test.

Would be cool if you can help me :)

Aucun commentaire:

Enregistrer un commentaire