Skip to content

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

@mabuimo

Description

@mabuimo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions