fit_model {VisitorCounts}R Documentation

Fit Model

Description

Fit the visitation model.

Usage

fit_model(
  parameter_estimates_and_time_series_windows,
  omit_trend,
  trend,
  is_input_logged,
  ...
)

Arguments

parameter_estimates_and_time_series_windows

# a list storing the outputs of estimate_parameters, including parameter estimates 'constant', 'beta', and 'slope', as well as data pertaining to time series windows.

omit_trend

This is obsolete and is left only for compatibility. In other words, trend will overwrite any option chosen in omit_trend. If trend is NULL, then trend is overwritten according to omit_trend. It is a Boolean specifying whether or not to consider the trend component to be 0. The default option is TRUE, in which case, the trend component is 0. If it is set to FALSE, then it is estimated using data.

trend

A character string specifying how the trend is modeled. Can be any of NULL, "linear", "none", and "estimated", where "none" and "estimated" correspond to omit_trend being TRUE and FALSE, respectively. If NULL, then it follows the value specified in omit_trend.

is_input_logged

A Boolean describing whether the onsite_usage, ref_series, and popularity_proxy are in the log scale. The default option is FALSE, in which case the inputs will be assumed to not be logged and will be logged before making forecasts. Setting it to TRUE will assume the inputs are logged.

...

Additional arguments

Value

visitation_fit

A vector storing fitted values of visitation model.


[Package VisitorCounts version 2.0.0 Index]