Description Usage Arguments Value Author(s) References See Also Examples
View source: R/estimate_impute_AR1_t.R
Estimate the parameters of a univariate Student's t AR(1) model to fit the given time series with missing values and/or outliers. For multivariate time series, the function will perform a number of indidivual univariate fittings without attempting to model the correlations among the time series. If the time series does not contain missing values, the maximum likelihood (ML) estimation is done via the iterative EM algorithm until converge is achieved. With missing values, the stochastic EM algorithm is employed for the estimation (currently the maximum number of iterations will be executed without attempting to check early converge).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
y |
Time series object coercible to either a numeric vector or numeric matrix
(e.g., |
random_walk |
Logical value indicating if the time series is assumed to be a random walk so that |
zero_mean |
Logical value indicating if the time series is assumed zero-mean so that |
fast_and_heuristic |
Logical value indicating whether a heuristic but fast method is to be used to
estimate the parameters of the Student's t AR(1) model (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 |
verbose |
Logical value indicating whether to output messages (default is |
return_iterates |
Logical value indicating if the iterates are to be returned (default is |
return_condMean_Gaussian |
Logical value indicating if the conditional mean and covariance matrix of the
time series (excluding the leading and trailing missing values) given the observed
data are to be returned (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 |
n_chain |
Positive integer indicating the number of the parallel Markov chains in the stochastic
EM method (default is |
n_thin |
Positive integer indicating the sampling period of the Gibbs sampling in the stochastic
EM method (default is |
K |
Positive number controlling the values of the step sizes in the stochastic EM method
(default is |
If the argument y
is a univariate time series (i.e., coercible to a numeric vector), then this
function will return a list with the following elements:
|
The estimate for |
|
The estimate for |
|
The estimate for |
|
The estimate for |
|
Numeric vector with the estimates for |
|
Numeric vector with the estimates for |
|
Numeric vector with the estimates for |
|
Numeric vector with the estimates for |
|
Numeric vector with the objective values at each iteration
(returned only when |
|
Numeric vector (of same length as argument |
|
Indices of missing values imputed. |
|
Indices of outliers detected/corrected. |
If the argument y
is a multivariate time series (i.e., with multiple columns and coercible to a numeric matrix),
then this function will return a list with each element as in the case of univariate y
corresponding to each
of the columns (i.e., one list element per column of y
), with the following additional elements that combine the
estimated values in a convenient vector form:
|
Numeric vector (with length equal to the number of columns of |
|
Numeric vector (with length equal to the number of columns of |
|
Numeric vector (with length equal to the number of columns of |
|
Numeric vector (with length equal to the number of columns of |
Junyan Liu and Daniel P. Palomar
J. Liu, S. Kumar, and D. P. Palomar, "Parameter estimation of heavy-tailed AR model with missing data via stochastic EM," IEEE Trans. on Signal Processing, vol. 67, no. 8, pp. 2159-2172, 15 April, 2019.
impute_AR1_t
, fit_AR1_Gaussian
, fit_VAR_t
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.