impute_OHLC {imputeFin} | R Documentation |
Impute missing values of an OHLC time series on a rolling window basis based on a Gaussian AR(1) model
Description
Impute inner missing values (excluding leading and trailing ones)
of an OHLC time series on a rolling window basis. This is a wrapper
of the functions impute_AR1_Gaussian
and
impute_rolling_AR1_Gaussian
.
Usage
impute_OHLC(
y_OHLC,
rolling_window = 252,
remove_outliers = FALSE,
outlier_prob_th = 0.001,
tol = 1e-10,
maxiter = 100
)
Arguments
y_OHLC |
Time series object coercible to a numeric matrix (e.g., |
rolling_window |
Rolling window length (default is |
remove_outliers |
Logical value indicating whether to detect and remove outliers. |
outlier_prob_th |
Threshold of probability of observation to declare an outlier (default is |
tol |
Positive number denoting the relative tolerance used as stopping criterion (default is |
maxiter |
Positive integer indicating the maximum number of iterations allowed (default is |
Value
Imputed OHLC prices.
Author(s)
Daniel P. Palomar
See Also
impute_AR1_Gaussian
, impute_rolling_AR1_Gaussian