Closed Taeyeon1607 closed 2 years ago
Variables with spread_draws must be specified as bare names (ie using backticks or no quotes at all), not strings. Does this work?
stab_model %>%
spread_draws(`(Intercept)`, mom_iq)
Thanks for replying!
I wrote it wrongly in the text. I entered it correctly as below and got the same error.
stan_model %>%
- spread_draws('(Intercept)', mom_iq) Error:
x
must be a vector
Looks like you are using single quotes ('), not backticks (`)
The problem has been resolved.
Since I'm a beginner, I'm bothered by an easy problem.
I've been struggling with this problem all day yesterday.
Thank you very much.
No worries, glad it is resolved! Quoting in R can be very confusing. Apologies the error message wasn't more helpful to start with.
Hello!
I made a regression model using rstanarm, and below are the output results of get_variables and spred_draws.
When only the mom_iq at the back is input, it is output without any abnormality, but that intercept seems to be the problem. How can I solve this?