Accessing covariate info within a Pumas fit object

Hello,

I’m trying to access covariate information saved within a Pumas fit object. I’m running simulations where each simulation will have a separate set of the same covariates for each subject within the simulation rep. I’m trying to access the covariates as such:

julia> zo_Erlang_abs_cmt2_prop_model_fitR.data[1].covariates
Pumas.ConstantInterpolationStructArray{Vector{Float64}, NamedTuple{(:STUDY, :isBLQ), Tuple{Vector{Int64}, Vector{Int64}}}, Symbol}([0.0, 0.010416666666666666, 0.020833333333333332, 0.03125, 0.041666666666666664, 0.0625, 0.08333333333333333, 0.10416666666666667, 0.125, 0.16666666666666666  …  14.0, 17.0, 21.0, 24.0, 28.0, 30.000694445833332, 32.0, 35.0, 42.0, 49.0], (STUDY = [1], isBLQ = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0  …  0, 0, 0, 0, 0, 0, 0, 1, 1, 1]), :left)

How would I access the STUDY = [1] and the corresponding isBLQ?

You can access the values using this syntax.

zo_Erlang_abs_cmt2_prop_model_fitR.data[1].covariates(0.0)
1 Like