Nothing
#' Truncates a time domain object to specified lags (equivalent to setting the lags to zero)
#'
#' @title Truncates a time domain object to specified lags
#' @param A \code{timedom} object - series of operators
#' @param lags lags to which A should be truncated
#' @return Truncated time series
#' @examples
#' X = rar(100)
#' Y = rar(100)
#' #estimate regressors in model $Y_t = \sum_{i\in Z} A_i X_{t-i}$
#' A = speclagreg(X,Y)
#' B = timedom.trunc(A, c(-1, 2, 3))
#' @export
timedom.trunc = function(A, lags){
if (!is.timedom(A))
stop ("A must be a time domain filter")
D = dim(A$operators)
D[1] = sum(A$lags %in% lags)
A$operators = array(A$operators[A$lags %in% lags,,],D)
A$lags = intersect(lags,A$lags)
A
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.