add_regressor.Rd 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/prophet.R
  3. \name{add_regressor}
  4. \alias{add_regressor}
  5. \title{Add an additional regressor to be used for fitting and predicting.}
  6. \usage{
  7. add_regressor(m, name, prior.scale = NULL, standardize = "auto")
  8. }
  9. \arguments{
  10. \item{m}{Prophet object.}
  11. \item{name}{String name of the regressor}
  12. \item{prior.scale}{Float scale for the normal prior. If not provided,
  13. holidays.prior.scale will be used.}
  14. \item{standardize}{Bool, specify whether this regressor will be standardized
  15. prior to fitting. Can be 'auto' (standardize if not binary), True, or
  16. False.}
  17. }
  18. \value{
  19. The prophet model with the regressor added.
  20. }
  21. \description{
  22. The dataframe passed to `fit` and `predict` will have a column with the
  23. specified name to be used as a regressor. When standardize='auto', the
  24. regressor will be standardized unless it is binary. The regression
  25. coefficient is given a prior with the specified scale parameter.
  26. Decreasing the prior scale will add additional regularization. If no
  27. prior scale is provided, holidays.prior.scale will be used.
  28. }