Skip to content
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 support for non-linear mixed models #37

Closed
paul-buerkner opened this issue Jan 31, 2016 · 6 comments
Closed

Add support for non-linear mixed models #37

paul-buerkner opened this issue Jan 31, 2016 · 6 comments
Labels

Comments

@paul-buerkner
Copy link
Owner

As brms generates Stan code on the fly, it should be possible to translate non-linear model formulae into Stan code, given that Stan knows the occuring functions (such as exp or log; possibly under another name) or that I have defined these functions in the 'functions' block of the Stan code. Definitely more of a long term goal, though.

@paul-buerkner
Copy link
Owner Author

Non-linear mixed models are more or less working now. Still, there are quite a few things to do:

  • document new functionality
  • add more unit tests
  • possibly improve efficiency of the Stan code (will stay as it is for now)
  • improve comments in the Stan code
  • add more input options for argument nonlinear
  • write a vignette
  • improve documentation
  • allow random effects of different non-linear parameters to be correlated

Also, I am almost sure I will find some more bugs in the process.

@EmmanuelCharpentier
Copy link

Thank you for this very interesting and very handy package. The "nonlinear" option is a very big selling point !

A vignette, including several examples and at least one detailed example, is indeed urgently needed : the current documentation makes it hard for a newcomer to figure out what should go in the "nonlinear" part of the model, and how to specify a model with both linear and nonlinear parts.

@paul-buerkner
Copy link
Owner Author

I agree. The vignette should be ready within the next few weeks.

@aforren1
Copy link
Contributor

If it helps in the meanwhile, I've worked a few simple examples using the Orange dataset at http://rpubs.com/aforren1/orange-nonlinear.

@paul-buerkner
Copy link
Owner Author

@aforren1 This is great, thanks! :-)

@paul-buerkner
Copy link
Owner Author

All of the main features of non-linear models have been implemented in brms version 0.8 and 0.9. The remaining stuff has been moved to other issues (see #91 and #90). Accordingly, I think this issue can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants