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

Handle multivariate models with auto_prior #103

Open
benwhalley opened this issue Dec 11, 2020 · 0 comments
Open

Handle multivariate models with auto_prior #103

benwhalley opened this issue Dec 11, 2020 · 0 comments

Comments

@benwhalley
Copy link

Hi -auto prior is really cool, but at the moment it doesn't work with multivariate models. You need to se the "resp" column in the resulting data frame by hand for it to work. E.g. I'm currently doing this:

f1 <- bf(inflexibility~trauma)
f2 <- bf(malbehaviour~inflexibility+trauma)

autopriors <- bind_rows(auto_prior(f1, df, gaussian=TRUE) %>% mutate(resp="inflexibility"), 
                        auto_prior(f2, df, gaussian=TRUE) %>% mutate(resp="malbehaviour")) 

Would be nice if it could pick up the response from the lhs of the bf

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

1 participant