Skip to content

Commit

Permalink
Remove UnLagged type
Browse files Browse the repository at this point in the history
  • Loading branch information
loganhotz committed Nov 14, 2023
1 parent 6c2d73c commit 6bc653b
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/VectorAutoRegressions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import ShiftedArrays: lag
# VectorAutoRegressions.jl
export AbstractVectorAutoRegression,
# miscellany
Unlagged,
VariableID

# model.jl
Expand Down Expand Up @@ -72,6 +71,8 @@ export L,

# impulse.jl
export ImpulseResponse,
# impulse response interface
model,
# responses
ResponseKind,
ReducedForm,
Expand Down Expand Up @@ -101,26 +102,6 @@ abstract type AbstractVectorAutoRegression{P} <: StatisticalModel end



"""
UnLagged
representation of a model that hasn't had its lag set
"""
struct UnLagged end
const LagType = Union{UnLagged, <:Integer}
const NoLag = UnLagged()
struct LagError <: Exception; msg::String; end
LagError() = LagError("")
function Base.show(io::IO, e::LagError)
if e.msg == ""
print(io, "model does not have assigned lag")
else
print(io, e.msg)
end
end



"""
VariableID = Union{<:AbstractString, Symbol}
"""
Expand Down

0 comments on commit 6bc653b

Please sign in to comment.