# \donttest{
# Load FRED_MD dataset
data("FRED_MD")
# Define frequency s, the same for all series
s <- 12
# Define a list with the first 10 time series with frequency s
X <- FRED_MD[,1:10]
Y <- vector(mode='list',length=ncol(X))
for (k in 1:ncol(X)){Y[[k]] <- ts(X[,k],frequency=s)}
# Apply the function to Y
out_db_het_oga <- db_het_oga(Y)
# }
Run the code above in your browser using DataLab