LotkaVolterra = @model begin
@param begin
tvα ∈ RealDomain(lower=0, init=0.5)
tvβ ∈ RealDomain(lower=0, init=0.03)
tvγ ∈ RealDomain(lower=0, init=0.8)
tvδ ∈ RealDomain(lower=0, init=0.02)
tvR0 ∈ RealDomain(lower=0, init=40.0)
tvL0 ∈ RealDomain(lower=0, init=4.0)
σ1 ∈ RealDomain(lower=0,init=0.1)
σ2 ∈ RealDomain(lower=0,init=0.1)
end
@pre begin
α = tvα
β = tvβ
γ = tvγ
δ = tvδ
R0 = tvR0
L0 = tvL0
end
@init begin
L = L0
R = R0
end
@dynamics begin
R' = α*R - β*R*L
L' = -γ*L + δ*R*L
end
@derived begin
y₁ := @. R
Hare ~ @. Normal(y₁,σ1)
y₂ := @. L
Lynx ~ @. Normal(y₂,σ2)
end
end
cannot assign a value to variable StatsBase.fit from module Main
Stacktrace:
[1] top-level scope at In[17]:1
[2] include_string(::Function, ::Module, ::String, ::String) at .\loading.jl:1091
[3] execute_code(::String, ::String) at C:\Users\johnson.rd.1.julia\packages\IJulia\a1SNk\src\execute_request.jl:27
[4] execute_request(::ZMQ.Socket, ::IJulia.Msg) at C:\Users\johnson.rd.1.julia\packages\IJulia\a1SNk\src\execute_request.jl:86
[5] #invokelatest#1 at .\essentials.jl:710 [inlined]
[6] invokelatest at .\essentials.jl:709 [inlined]
[7] eventloop(::ZMQ.Socket) at C:\Users\johnson.rd.1.julia\packages\IJulia\a1SNk\src\eventloop.jl:8
[8] (::IJulia.var"#15#18")() at .\task.jl:356