Closed billdenney closed 1 month ago
The focei
methods are working in this revision more or less, saem
is ongoing. If that is sufficient for you to work on, that is fine with me.
You can install with:
remotes::install_github("nlmixr2/lotri")
remotes::install_github("nlmixr2/rxode2")
remotes::install_github("nlmixr2/nlmixr2")
The tests need to be updated too, since they use low level functions etc, so this isn't "working" yet.
Maybe we should move this to projects?
@mattfidler , Can you please move this to nlmixr2extra
? (I don't think that I can move the issue.)
Done. Not sure what is required to move issues.
@mattfidler, While working on the profile.nlmixr2FitCore
method in the PR this morning, I realized that I was reinventing numerical optimization for about the 50th time in my career.
What I'd like to do is to use a one-dimensional minimizer trying to minimize fit$objective + targetOfv
by varying each requested parameter in turn where:
Rather than reinventing all of this, I'd prefer to use parts of nlmixr2
that are likely already available in some form. Is there something that could do this for me in nlmixr2
?
Not yet. You are in luck :smile: I would suggest something like Brent's method in optim
Unfortunately, Brent's method in optim()
starts at the middle of the allowed interval, so if the limits for lka
are c(-10, 10), and the estimate is 3, it will start the search at 0 rather than near 3. But generally, I'm looking around there for a solution.
I think that it'd be helpful to implement a
profile()
method for fit objects to perform log-likelihood profiling. (This is not a high priority request, and if not yet implemented, it's something that I could help with.)