I've been using the Kendall package on R, but this function (MannKendall) does not take a date column as an argument, only the data (with time series included, this means that there is a homogeneous time series). In the data I have the dates are not equally spaced, so I need some package that allows me to choose that date column and consider it in the calculation for tau and p-value. If you know how to do that in the Kendall package, please help me with that.
>MannKendall(PrecipGL)
tau = 0.265, 2-sided pvalue =0.00029206
>tidy(MannKendall(PrecipGL))
# A tibble: 1 x 5
statistic p.value kendall_score denominator var_kendall_score
1 0.265 0.000292 989 3738. 74398.
Aucun commentaire:
Enregistrer un commentaire