I ma trying to fit a multivariate time series analysis : here is a sample data
date country sale
1/01/2018 USA 381
2/01/2018 USA 818
3/01/2018 USA 108
1/01/2018 UK 381
2/01/2018 UK 818
3/01/2018 Uk 222
1/01/2018 Hun 381
2/01/2018 Hun 818
3/01/2018 Hun 233
1/01/2018 Li 381
2/01/2018 Li 818
3/01/2018 Li 233
I want to implement multivariate analysis for this time series, here I have two variables as country and sale. so I need to predict for next 2 years based on values.
I found "tsibble" and "fable" could do this but unable to install "fable", am getting error as" "Error: package or namespace load failed for ‘fabletools’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
namespace ‘tidyr’ 0.8.1 is already loaded, but >= 1.1.0 is required* Error: package ‘fabletools’ could not be loaded"
Its about time series for multivariate analysis, but found a solution based on "fable". So tried that but got error, hence provided that error message. But ultimate goal is to build a multivariate time series model in R. Any example or idea would help.