Production of a BSTS Mean Absolute Percentage Error (MAPE) Plot from a Bayesian Time Series Analysis with MCMC using ggplot() and bsts() packages
问题 Problem: I have a data frame called FID (see below) that contains two columns for Year & Month, and Sighting_Frequency (counts of birds). The data frame contains 3 years of observations between 2015-2017 , indicating I have 36 months of data. I have run a Bayesian time series analysis with MCMC using the bsts() function in the bsts package (see the R-code below) by following the tutorial below. I want to produce a holdout Mean Absolute Percentage Error (MAPE) Plot as seen in the diagram below