facebook / facebook/prophet

Error in if (prior.scale <= 0) { : argument is of length zero - add_regressor() function in R

Open
#2,242 0 comments 0 reactions 0 assignees View on GitHub
bug R
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

Hi. Im fairly new to using fbprophet and have encountered an error while trying to add regressors to fit my model. I have 8 regressors, all of which are numeric. Tried fitting the regressors using the code :
`modelProphet <- add_regressor(pcedataProphet_train, 'PC1')`

pcedataProphet_train- df
PC1 - regressor

I have attempted to add all 8 regressors using the above line of code. But the error that is shown is:
`Error in if (prior.scale <= 0) { : argument is of length zero`.

I checked on what this means but did not understand what value should I add to my argument 'prior.scale'.

Thanks in Advance!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.