We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
spread_draws()
I am having trouble applying spread_draws() to a varying intercept varying slope model fit with the following formula and stan_glmer()
stan_glmer()
y ~ log(x) + (log(x) | site)
Calling get_variables() returns something like this:
[1] "(Intercept)" [2] "log(x)" [3] "b[(Intercept) site:A]" [4] "b[log(x) site:A]" [5] "b[(Intercept) site:B]" [6] "b[log(x) site:B]" ...
Is this naming convention compatible with spread_draws()? I'd like to extract a dataframe that looks like this:
.draw, site,(Intercept),log(x) 1,A,...,... 1.B,...,... ...
The text was updated successfully, but these errors were encountered:
Simply spread_draws(fit, b[i,j]) works. I was backticking b[i,j] and that was breaking it with:
b[i,j]
No variables found matching spec: b\[i\,j\]
Is that a bug?
Sorry, something went wrong.
Yeah b[i, j] should work, and if you want the i as columns b[i, j] | i would do that.
b[i, j]
i
b[i, j] | i
Using backticks like `b[i,j]` doesn't work because that means you are asking for a variable named "b[i,j]" exactly.
`b[i,j]`
"b[i,j]"
Ah that explains it, thanks
great, happy to help!
No branches or pull requests
I am having trouble applying
spread_draws()
to a varying intercept varying slope model fit with the following formula andstan_glmer()
Calling get_variables() returns something like this:
Is this naming convention compatible with spread_draws()? I'd like to extract a dataframe that looks like this:
The text was updated successfully, but these errors were encountered: