diff --git a/Project.toml b/Project.toml index 18b24fd..b937b4d 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StateSpaceLearning" uuid = "971c4b7c-2c4e-4bac-8525-e842df3cde7b" authors = ["andreramosfc "] -version = "1.4.0" +version = "1.4.1" [deps] Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" diff --git a/src/models/structural_model.jl b/src/models/structural_model.jl index 0a57f1d..7fe96e3 100644 --- a/src/models/structural_model.jl +++ b/src/models/structural_model.jl @@ -131,6 +131,12 @@ mutable struct StructuralModel <: StateSpaceLearningModel stochastic_start, Exogenous_X, ) + # convert y format into vector or matrix of AbstractFloat + if typeof(y) <: Vector + y = convert(Vector{AbstractFloat}, y) + else + y = convert(Matrix{AbstractFloat}, y) + end return new( y, X,