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

Functions do not work with particular distribution families #4

Open
ManfredKloebl opened this issue Oct 4, 2022 · 3 comments
Open

Comments

@ManfredKloebl
Copy link

Hi,

I'm currently facing the same problem as was previously discussed here, so it seems that no solution had been found yet: https://discourse.mc-stan.org/t/new-package-for-sensitivity-analysis-using-importance-sampling/17930/6. It seems to me that only particular distribution families are affected (e.g., the zero-one-inflated beta but not the pure beta distribution). Maybe this is a starting point for analyzing the problem. Here is a toy example, which also demonstrates this:

library("brms")
library("adjustr")

y <- runif(100)
x <- rnorm(100)

df <- tibble(y, x)

model1 <- brm(y ~ x, data = df, family = brmsfamily("beta"), init = "0")
model2 <- brm(y ~ x, data = df, family = brmsfamily("zero_one_inflated_beta"), init = "0")

extract_samp_stmts(model1)
extract_samp_stmts(model2)

Many thanks for your support!

@CoryMcCartan
Copy link
Owner

Are you using the most recent development version?

I thought we fixed this here #1 but perhaps not

@ManfredKloebl
Copy link
Author

Yes, I downloaded the latest version just today and downloaded it again now to be sure. I still get this error message for the second of the above models:

Error in str2lang(x) : <text>:1:28: unexpected '['
1: Y ~ zero_one_inflated_beta([
                               ^

@CoryMcCartan
Copy link
Owner

OK, thanks, I'll take a look

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