logistic_growth_init.Rd 664 B

1234567891011121314151617181920212223
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/prophet.R
  3. \name{logistic_growth_init}
  4. \alias{logistic_growth_init}
  5. \title{Initialize logistic growth.}
  6. \usage{
  7. logistic_growth_init(df)
  8. }
  9. \arguments{
  10. \item{df}{Data frame with columns ds (date), cap_scaled (scaled capacity),
  11. y_scaled (scaled time series), and t (scaled time).}
  12. }
  13. \value{
  14. A vector (k, m) with the rate (k) and offset (m) of the logistic
  15. growth function.
  16. }
  17. \description{
  18. Provides a strong initialization for logistic growth by calculating the
  19. growth and offset parameters that pass the function through the first and
  20. last points in the time series.
  21. }
  22. \keyword{internal}