Skip to content

generate_datasets fails with nonlinear brms models #86

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

Open
hrlai opened this issue Nov 27, 2023 · 3 comments
Open

generate_datasets fails with nonlinear brms models #86

hrlai opened this issue Nov 27, 2023 · 3 comments

Comments

@hrlai
Copy link

hrlai commented Nov 27, 2023

Hi devs, I have a brms model fitted with the set_nl(TRUE) formula setting. Then I got the following error from generate_datasets:

Error in UseMethod("brms_response_sequence") : 
  no applicable method for 'brms_response_sequence' applied to an object of class "btnl"

Could they be related? Thanks.

@martinmodrak
Copy link
Collaborator

Unfortunately, automatic datset generation for non-linear brms models is not currently supported (the error should be clearer on that). For most use cases, I'd strongly suggest writing your own generator anyway - if your model specification does something different than what you'd like the automatic generator will replicate the issue and you will not notice any problems, despite the model being incorrect...

@hrlai
Copy link
Author

hrlai commented Nov 28, 2023

Thanks for the quick reply. I'll explore the custom generator. Gonna close this for now since it isn't an immediate fix. :)

@hrlai hrlai closed this as completed Nov 28, 2023
@martinmodrak
Copy link
Collaborator

I'll keep it open - we definitely should at least improve the error message. It is also possible that supporting non-linear models won't be that hard - we never really tried doing that.

@martinmodrak martinmodrak reopened this Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants