I am trying to include a covariate (Bili) into the data set. This covariate has missing rows and I get the error message : BoundsError: attempt to access 0-element Array{Float64,1} at index [0]
Any suggestions?
Here is the code:
par_glu_cov = read_pumas(df_belino,
cvs = [:Gender,:BSA, :Cohort, :Weight, :Bili],
dvs = [:Conc_B, :Conc_Glucu],
id = :Patient,
time = :Time,
evid = :evid,
amt = :Amt,
rate = :rate
)
BoundsError: attempt to access 0-element Array{Float64,1} at index [0]
and in that case, itβs not possible to use that covariate. The solution is probably to manually set the first entry to a reasonable value. However, we should provide a more informative error message. Iβll file an issue.