-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: tweakInits()
#33
Comments
This tweaking is already built into focei but not saem
|
But not at this much detail. Mostly the restarting.
|
Ah, this has a different goal than just restarting. The idea was that it is a model sensitivity check: rerun the model with different initial estimates and see if you get the same or different results. |
Based on an email comment from @bergsmat, I have updated the default |
Should we call it |
The other possibility is to allow custom initial conditions, like their |
Another option to include is the seed. They should also be drawn before the estimation procedure because each sets the seed to a value. |
There are several tools that we are circling around. One is the PsN parallel retries and another is |
I agree, I think. Perhaps it is good to distinguish what is being done from why it is being done. Creating one or more deviations from initial conditions could be used to search for a nearby solution, or to test that a found solution is at least locally robust. If the exact same thing is going on underneath, no harm in "skinning" it two different ways, especially if you have a broad user group that will be familiar with a particular invocation. That said, I expect most of us will quickly discover whatever interface you supply, and recognize its applicability to our particular use cases. I would lean towards keeping the interface simple and using names that feel intuitive to you. |
At ACoP, someone asked if we had all the PsN features implemented. I said, "not yet." The specific request was for a function to tweak initial conditions to check for stability. I took a look at what PsN does (https://github.com/UUPharmacometrics/PsN/releases/download/v5.3.0/parallel_retries_userguide.pdf), and my read is that the most useful set of inputs would look something like the following:
The arguments would be:
object
: The fit modeln
: the number of retries to performtweakFrac
: The fraction to modify the initial estimates (always ensuring that the new initial estimate is within the bounds)tweakFixed
: Also tweak fixed parameters? (TRUE
is yes,FALSE
is no)keepAll
: Should the full models be saved (TRUE
) or just the parameter tables (FALSE
)?The output would be an object (proposed class:
nlmixr2extraTweakInits
) with a data.frame-like printing method, an as.data.frame() method, and a plotting method which would show all the parameter estimates and their CI for the original (blue) and the tweaked parameters (gray) with points at the estimates and lines for the CI. The data.frame would have columns for each parameter, each parameter RSE, back-transformed parameters, and the lower and upper bound of the CI.Edit: clarified the output object
The text was updated successfully, but these errors were encountered: