prophetS: prophetS

Description Usage Arguments

View source: R/prophetS.R

Description

is a revised version of prophet that combine some other functions from xts package for dealing data.frame, multiple variables and adding group variables. return the history data and graphs as well as predicted graph using prophet.

Usage

1
2
3
prophetS(data, tsVar, tsFormat = "ymd", measureVars, groupVars = 1,
  Period = "weeks", FN, Cap = -1, Floor = -1, Growth = "linear",
  H = 10, yearlyS = "auto", dailyS = "auto", weeklyS = "auto")

Arguments

data

data.frame

tsVar

ts variable

tsFormat

could be 'ymd','ym','y','mdy','ymd hms', etc.

measureVars

measurement variables in data.

groupVars

grouping variables in data

Period

could be 'years','quarters','months','weeks','days','hours','minutes','seconds',etc.

FN

function eg: 'mean','function(x)sum(x,na.rm=T)',etc.

Cap

same as cap in prophet.

Floor

same as floor in prophet.

Growth

same as growth in prophet.

H

same as h in prophet.

yearlyS

TRUE,FALSE or "auto", same as yearly.seasonality in prophet.

dailyS

TRUE,FALSE or "auto", same as daily.seasonality in prophet.

weeklyS

TRUE,FALSE or "auto", same as weekly.seasonality in prophet.


sontron/madis documentation built on March 23, 2021, 10:17 p.m.