mitchelloharawild / fable.prophet

fable extension for the prophet forecasting procedure
https://pkg.mitchelloharawild.com/fable.prophet
55 stars 8 forks source link

Can fable.prophet accept a ~ log(predictor) as a regressor? #32

Open mabuimo opened 1 year ago

mabuimo commented 1 year ago

Hi, if I specify a model such as

fabletools::model(prophet = prophet(log(target) ~ log(gdp))

I get the following message:

6: 143 errors (1 unique) encountered for prophet [143] You have provided a name that is not syntactically valid in R, log(gdp). A syntactically valid name consists of letters, numbers and the dot or underline, characters and starts with a letter or the dot not followed by a number.

Can fable.prophet accept a ~ log(predictor) as a regressor, or do I need to calculate log(predictor) previously?

The ARIMA models from fable take the log of covariates without complaining.