You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
library(rstanarm)
options(mc.cores = parallel::detectCores())
stan_lm(mpg ~ wt, data = mtcars)
# Error in stopifnot(is.numeric(location)) : 'location' must be specified
More info:
R version 4.2.1 (2022-06-23)
rstan (Version 2.21.7)
packageVersion("rstanarm")
# [1] ‘2.21.3’
The text was updated successfully, but these errors were encountered:
I do think that this is a bad default, though. I think the only people out there using stan_lm() are early students (outside statistics departments) trying to transition from lm(). Having to specify a prior on R^2 seems too confusing at that level.
Summary:
The
stan_lm()
function doesn't work for me.More info:
The text was updated successfully, but these errors were encountered: