Currently, I donβt think that is supported. Iβm interested in knowing why youβd like the estimates as a dataframe. You can extract the estimates to a NamedTuple with coef(res) which I personally think is the more convenient structure for the parameters.
Usually, our final deliverable for parameter estimate is as a table in the report.
The below link is a vignettes of R package nonmemica for creating NONMEM parameter table. I donβt use this package, but it shows why Iβm asking the parameter estimates as a data frame. https://cran.r-project.org/web/packages/nonmemica/vignettes/parameter-table.html
When I try coef(res), I can see parameter estimates as NamedTuple but I donβt have an idea how to manipulate this into table I want.
Thanks. That was a useful reference. I believe there is ongoing work on supporting export the fit results to e.g. Markdown or HTML. If you had access to similar output functionality as provided by nonmemica directly from a fitted Pumas model, would that solve your problem or would you still need the dataframe for postprocessing?
in general, if you have a NamedTuple, you should be able to convert that to a DatFrame. e.g.
julia> myres = (a = 2, b=3)
(a = 2, b = 3)
julia> DataFrame([myres])
1Γ2 DataFrame
β Row β a β b β
β β Int64 β Int64 β
βββββββΌββββββββΌββββββββ€
β 1 β 2 β 3 β
However, the problem we have in converting the NamedTuple of our coefficients is that the Omega parameters are an array and are printed with type information, and hence the DataFrame constructor fails on this result. Hopefully, we will be able to get a simple convenience soon.
I think many user has their own preference for this kinds of work. It would be great if Pumas provide nice final output directly with simple one line of function. But some user may prefer their own way of manipulation or post-processing of final result.
NONMEM provide several output files which can be processed outside of NONMEM. In another NLME software Monolix, which is GUI based software and it shows every plot and table after run but those results can be exported as a separate file for further manipulation. For population parameter, Monolix return file populationParameters.txt as below.