Hello,
I was able to run the following code few days ago
mod = @model begin
@param begin
TVCL ∈ RealDomain(lower = 0.00001)
tvKTV ∈ RealDomain(lower = 0.00001)
TVVc ∈ RealDomain(lower = 0.000001, upper = 8)
wt_cl ∈ RealDomain()
wt_v ∈ RealDomain()
circuit ∈ RealDomain()
ecmo ∈ RealDomain()
Ω ∈ PDiagDomain(3)
σ_add ∈ RealDomain(lower = 0.0001)
σ_prop ∈ RealDomain(lower = 0.0001)
end
@random begin
η ~ MvNormal(Ω)
end
@covariates WT AGE_D ISMALE SCR GFR AGEYRS TYPE_MODELING IS_BLEEDING IS_CIRCUIT_CHANGE ECMO_DAYS Occassions IS_CIRCUIT_CHANGE_UPDATE IS_BLEEDING_UPDATE
@pre begin
KTV = tvKTV*exp(η[1])*(ECMO_DAYS/6)^ecmo
CL = TVCL * exp(η[2])*(1-exp(-KTV*t))*(WT/50)^wt_cl*circuit^IS_CIRCUIT_CHANGE
Vc = TVVc * exp(η[3])*(WT/50)^wt_v
end
@dynamics Central1
@derived begin
CP = @. Central / Vc
CONC = @. Normal(abs(CP), sqrt(CP^2*σ_prop+σ_add))
end
end
However, I am receiving the following error
ERROR: ArgumentError: Using explicit time in the pre or dcp blocks with Central1 <: ExplicitModel is not support.
Stacktrace:
[1] macro expansion
@ /builds/PumasAI/PumasSystemImages-jl/.julia/packages/Pumas/MxXdQ/src/dsl/model_macro.jl:1281 [inlined]
[2] top-level scope
@ ~/data/code/UFH_ECMO_UTAH/UFH_UTAH/ECMO_UTAH_NEW.jl:23
Could you please help ?