I've developed a model like so:
fit <- data %>%
model(
prophet = fable::prophet(Value ~
xreg(a, b, c, d, e)
)
)
The xregs are all binary intervention variables (except for "a" which is literally just the number of days in the month, because explicitly telling the model that apparently improves performance).
I would like to quantify the impact of variable "c" - ideally I would like to show on a line chart what the curve would look like if this event hadn't occurred (quantify the attribution). My thinking was to take the beta coefficient of this variable and plot two lines, one with and without. Assuming that's a valid approach (?), to do so I planned on extracting the equation for the model and the coefficients, but I'm having some trouble here.
tidy(fit)
works to pull the coefficients (base growth, trend offset, coefficients of each xreg), but report(fit)
returns "A model specific report is not available for this model class." I interpret that to mean report() isn't implemented for Prophet. Can anybody provide some suggestions for how I can interpret the coefficients and quantify attribution of the variable I'm interested in?
I'm also brainstorming developing two separate models - with and without the variable - and comparing forecasts of each, but this feels a little dubious.