-
Notifications
You must be signed in to change notification settings - Fork 6
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
274 Return frequentist MMRM model object #369
base: main
Are you sure you want to change the base?
Conversation
Have incorporated the update to use mmrm instead of glmmTMB. I also decided to convert this from using attributes to instead using environments to store the model object. Whilst it is a bit of an anti pattern I think it simplifies the code quite a bit and avoids the need redefining attributes across multiple locations. I still need to update the documentation and unit tests but @nociale would you mind skimming the changes to see what you think ? |
@gowerc It looks good to me, as if I do |
Urgh, a big issue with this that I only just realised is that we completely do away with the variable names and also manually expand out dummy variables i.e: Can't imagine people will be happy getting The amount of code required to map that all bag to meaningful variable names I think might be a huge pain... Not really sure what to do here :( |
Some notes as to why this is difficult:
We probably could re-write the model to be based on the original variable names and then just assume the expanded design matricies are properly aligned, but this would mean re-writing a non-trivial amount of code + unit tests. |
Some more notes encase we did want to make this change. the dataframe is expanded into a design matrix in If we were to pass the raw dataframe to
I don't think I can't decide if this is worth the hassle or not at the moment :s |
@gowerc That was a really good point. If I blind myself from considering the amount of work needed to complete this task, I would say that if we return the MMRM object from the base imputation model, we should keep the same variable names as in In short, I would personally add this feature only once the name of the variables is the same as in the input dataset. |
Plus, please see #382 which also applies here in principle.. |
#274
Fetch model for condmean. All tests past at local