stan_lm doesn't work
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 401
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
Summary:
The stan_lm() function doesn't work for me.
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’
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported stan_lm(mpg ~ wt, data = mtcars) call with the listed R, rstan, and rstanarm versions, then trace the stan_lm entry point to the source of the 'location' error. Done means the example runs successfully or the issue is narrowed to a confirmed compatibility problem.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100