estimate_parameters {VisitorCounts} | R Documentation |
Estimate Parameters for Visitation Model
Description
Estimate the two parameters (y-intercept and seasonality factor) for the visitation model.
Usage
estimate_parameters(
popularity_proxy_decomposition_data = NULL,
onsite_usage,
onsite_usage_decomposition,
omit_trend,
trend,
ref_series,
constant,
beta,
slope,
parameter_estimates,
is_input_logged,
...
)
Arguments
popularity_proxy_decomposition_data |
A "decomposition" class object containing decomposition data for the popularity proxy time series (outputs from |
onsite_usage |
A vector which stores monthly onsite usage for a particular social media platform and recreational site. |
onsite_usage_decomposition |
A "decomposition" class object containing decomposition data for the monthly onsite usage time series (outputs from |
omit_trend |
This is obsolete and is left only for compatibility. In other words, |
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 |
ref_series |
A numeric vector specifying the original visitation series. The default option is NULL, implying that no such series is available. If such series is available, then its length must be the same as that of |
constant |
A numeric specifying the constant term (beta0) in the model. This constant is understood as the mean log adjusted monthly visitation relative to the base month. The default option is 0, implying that the (logged) |
beta |
A numeric or a character string specifying the seasonality adjustment factor (beta1). The default option is "estimate", in which case, it is estimated by using the Fisher's z-transformed lag-12 autocorrelation. Even if an actual value is supplied, if |
slope |
A numeric specifying the slope coefficient (beta2) in the model. This constant is applicable only when |
parameter_estimates |
A character string specifying how to estimate beta and constant parameters should a reference series be supplied. Both options use least squares estimates, but "separate" indicates that the differenced series should be used to estimate beta separately from the constant, while "joint" indicates to estimate both using non-differenced detrended series. |
is_input_logged |
A Boolean describing whether the |
... |
Additional arguments. |
Value
lagged_proxy_trend_and_forecasts_window |
A 'ts' object storing the potentially lagged popularity proxy trend and any forecasts needed due to the lag. |
ts_trend_window |
A 'ts' object storing the trend component of the onsite social media usage. This trend component is potentially truncated to match available popularity proxy data. |
ts_seasonality_window |
A 'ts' object storing the seasonality component of the onsite social media usage. This seasonality component is potentially truncated to match available popularity proxy data. |
latest_starttime |
A 'tsp' attribute of a 'ts' object representing the latest of the two start times of the potentially lagged populairty proxy and the onsite social media usage. |
endtime |
A 'tsp' attribute of a 'ts' object representing the time of the final onsite usage observation. |
beta |
A numeric storing the estimated seasonality adjustment factor. |
constant |
A numeric storing estimated constant term used in the model. |
slope |
A numeric storing the estimated slope term used in the model. Applicable when the trend parameter is "linear". Otherwise, NULL is returned. |