-
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
Add nlmixr_formula() (testable work in progress) #5
base: main
Are you sure you want to change the base?
Conversation
One minor comment, please adopt the style used in the rest of the package. I follow more or less the bionconductor style guide: |
Mostly I really want a consistent feel from the user and developer perspective. If we follow a consistent style guide then this would be easier to achieve |
Eventually possible right now not possible |
This perhaps should be generalized to the rest of nlmixr? |
I'm happy to modify the style. My default style is snake_case, and I needed this pretty quickly for something else. I also thought that there may be significant modifications after considerations for the ways that it works, so I'm guessing there will be some pretty big rework before it's done. I don't see a simple way to generalize the factor handling to the rest of nlmixr2, but I'd be interested to think about it more and hear thoughts of how it could be done. The way that the nlmixr2 A few ideas of how I considered it were:
|
FYI, this PR update only changes things around the edges (documentation issues, mainly). I'll go through the coding style after the underlying functionality has been reviewed. |
Another thought for generating parameters for a model with a fixed effect per factor level. Should we go all the way down the path of generating orthogonal contrasts for estimation and then back-transforming them? That seems like it would be mathematically the best (in most scenarios), but it gets a lot more cumbersome. Or, maybe that is already sufficiently covered by |
Well, all factors are mu referenced so perhaps simply adding them to the
linear model for covariates would be fine. If that is the case , the
initial estimate would be mostly irrelevant.
This speaks to adding my referenced covariates to focei like nonmem....
|
I don't understand "all factors are mu referenced". |
It would be good to switch to using the reformulas package for formula processing. https://cran.r-project.org/package=reformulas |
This is entirely up to you |
Fix #6.
What it does is it implements a formula interface that allows nlmixr2 models to be estimated when all that is required is an algebraic formula. It takes inspiration from
lme4::nlmer()
for the way to define the formula to use.The current state of the PR does not have testing, and documentation needs expansion. There are some design decisions that I think are worth vetting, too.
The main design decisions that are questionable to me are:
ID
or are other columns also acceptable?