Increasing the prediction time points for subject_fits() function

Hello,

I am using the following function to inspect the individual fits:


figures = 
    subject_fits(
        res_fit_peds;
        paginate = true,
        separate = true,
        figure = (
            fontsize = 18,
        ),
        axis = (
            xlabel = "Time (hr)",
            ylabel = "Anti-factor Xa (IU/L)"
        ),
        facet = (combinelabels = true,),
)

However the shape of prediction lines seems to be based on few time points. Is there a way to increase the number of time points that are used for model prediction lines ?

Thanks

@ahmed.salem - use this pattern

m1_insp = inspect(m1_ft)

ind_preds = [predict(m1.model, m1.data[i], m1_ft.param, 
            obstimes = minimum(m1_ft.data[i].time):1:maximum(m1_ft.data[i].time)) 
            for i in 1:length(m1_ft.data)]
indplots = subject_fits(ind_preds,
                        limit = 9, cols = 3, rows = 3, 
                        paginate =true, 
                        separate=true,
                        facet =  (combinelabels = true,))        

you indplots will be an array of plots that you can visualize

one at a time

indplots[1]
indplots[2]
---

or you can generate a report that gets stored in the default directory


report(indplots, title = "individual fits")
1 Like

Thanks so much it works !