You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@assertlength(output.components["Exogenous_X"]["Indexes"]) ==size(Exogenous_Forecast, 2) "If an exogenous matrix was utilized in the estimation procedure, it must be provided its prediction for the forecast procedure. If no exogenous matrix was utilized, Exogenous_Forecast must be missing"
101
101
@assertsize(Exogenous_Forecast, 1) == steps_ahead "Exogenous_Forecast must have the same number of rows as steps_ahead"
@@ -107,21 +107,21 @@ function forecast(output::Output, steps_ahead::Int64; Exogenous_Forecast::Matrix
@assertall([key inkeys(estimation_input) for key in ["α", "information_criteria", "ϵ", "penalize_exogenous", "penalize_initial_states"]]) "All estimation input parameters must be set"
@@ -30,57 +30,57 @@ function build_components(X::Matrix{Tl}, coefs::Vector{Float64}, components_inde
30
30
end
31
31
32
32
"""
33
-
get_fit_and_residuals(estimation_ε::Vector{Float64}, coefs::Vector{Float64}, X::Matrix{Tl}, valid_indexes::Vector{Int64}, T::Int64) -> Tuple{Vector{Float64}, Vector{Float64}} where Tl
33
+
get_fit_and_residuals(estimation_ε::Vector{Float64}, coefs::Vector{Float64}, X::Matrix{Tl}, valid_indexes::Vector{Int}, T::Int) -> Tuple{Vector{Float64}, Vector{Float64}} where Tl
34
34
35
35
Builds complete residuals and fit in sample. Residuals will contain nan values for non valid indexes. Fit in Sample will be a vector of fitted values computed from input data and coefficients (non valid indexes will also be calculated via interpolation).
36
36
37
37
# Arguments
38
38
- `estimation_ε::Vector{Float64}`: Vector of estimation errors.
39
39
- `coefs::Vector{Float64}`: Coefficients.
40
40
- `X::Matrix{Tl}`: Input matrix.
41
-
- `valid_indexes::Vector{Int64}`: Valid indexes.
42
-
- `T::Int64`: Length of the original time series.
41
+
- `valid_indexes::Vector{Int}`: Valid indexes.
42
+
- `T::Int`: Length of the original time series.
43
43
44
44
# Returns
45
45
- Tuple containing:
46
46
- `ε::Vector{Float64}`: Vector containing NaN values filled with estimation errors at valid indexes.
47
47
- `fitted::Vector{Float64}`: Vector of fitted values computed from input data and coefficients.
0 commit comments