# Accessing covariate info within a Pumas fit object

**URL:** <https://discourse.pumas.ai/t/accessing-covariate-info-within-a-pumas-fit-object/1031>\
**Category:** How-to\
**Created:** [May 14, 2024, 10:42pm UTC](https://discourse.pumas.ai/t/accessing-covariate-info-within-a-pumas-fit-object/1031 "2024-05-14T22:42:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![donaldlee3](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/donaldlee3/32/165_2.png) [@donaldlee3](https://discourse.pumas.ai/u/donaldlee3)\
**Post date:** [May 14, 2024, 10:42pm UTC](https://discourse.pumas.ai/t/accessing-covariate-info-within-a-pumas-fit-object/1031/1 "2024-05-14T22:42:43Z")

</div>

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:

```auto
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?

---

<div class="post-metadata">

**Author:** ![mohamed82008](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.pumas.ai/mohamed82008/32/127_2.png) [@mohamed82008](https://discourse.pumas.ai/u/mohamed82008)\
**Post date:** [May 15, 2024, 5:10am UTC](https://discourse.pumas.ai/t/accessing-covariate-info-within-a-pumas-fit-object/1031/2 "2024-05-15T05:10:53Z")

</div>

> [@donaldlee3](#):
>
> `zo_Erlang_abs_cmt2_prop_model_fitR.data[1].covariates`

You can access the values using this syntax.

```julia
zo_Erlang_abs_cmt2_prop_model_fitR.data[1].covariates(0.0)

```
