Function that generates the design matrices of the clustering algorithm based on the parameters that the user wants to consider, i.e. level, polinomial trend and/or seasonal components. It also returns the number of parameters that are considered and not considered for clustering.
designmatrices(level, trend, seasonality, deg, T, n, fun)Variable that indicates if the level of the time series will be considered for clustering. If level = 0, then it is omitted. If level = 1, then it is taken into account.
Variable that indicates if the polinomial trend of the model will be considered for clustering. If trend = 0, then it is omitted. If trend = 1, then it is taken into account.
Variable that indicates if the seasonal components of the model will be considered for clustering. If seasonality = 0, then they are omitted. If seasonality = 1, then they are taken into account.
Degree of the polinomial trend of the model.
Number of periods of the time series.
Number of time series.
Clustering function being used.
Design matrix of the parameters not considered for clustering.
Design matrix of the parameters considered for clustering.
Number of parameters not considered for clustering.
Number of parameters considered for clustering.