-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Latest install of rstanarm stan_surv() fails with random effects. #588
Comments
Hello Daniel, |
Hi @lauracp92 I have not been able to solve this with the most recent install of the rstanarm survival branch. Any ideas @sambrilleman @jgabry ? I had an old fork of the repository that used to work: https://github.com/padpadpadpad/rstanarm but that has broken now too, with the error:
So I do not have a fix for this at all. Frustrating because stan_surv() is amazing and I would love to be able to easily and reliably use it. Wonder if it is an error linked to an update of rstan more generally? |
Does the version in the mc-stan packages repository work? install.packages("rstanarm", repos = c("https://mc-stan.org/r-packages/", getOption("repos"))) |
fixed typo in my previous comment (it was installing RStan not rstanarm) |
@jgabry seems to install but it does not have the survival branch in so the |
Hmm I thought that had the survival branch, but you're right that |
Sorry for the slow reply. Yeah for this issue:
take a look at this PR @padpadpadpad: #594 As for the error that started this thread I'm a little unsure at the moment!
Also, for this issue, I think it is because if the binary isn't compatible with version of R you have, then it falls back to another version of rstanarm at the next Unfortunately I'm not working on this stuff at the moment, and now work almost exclusively in Python so don't even really have a dev environment set up to easily test stuff out atm...! 😞 |
There was an issue thread somewhere here or in the forums about the |
Hi @sambrilleman and @jgabry, I do really appreciate you responding - especially as Sam no longer actively work on this. I have tried what you suggested, but now with both the survival branch on rstanarm and my old fork, I get the error Seems to be an old-ish problem, but I cannot work out how to fix it easily. With the latest CRAN installs of rstanarm, rstan and StanHeaders everything works fine. |
Summary:
I downloaded rstanarm in my usual way and tried to run a stan_surv model with random effects and it errors.
Description:
When I run the example from
stan_surv()
that includes random I get the error:Reproducible Steps:
I download rstanarm by running:
git clone -b feature/survival https://github.com/stan-dev/rstanarm.git
in the Terminal. I then rundevtools::document()
and Build the R package locally.I then ran:
And got the error above. Other random effects model also fail.
RStanARM Version:
I am running rstanarm v2.21.3
R Version:
I am running R version v4.2.2
Operating System:
Your operating system (e.g., OS X 13.2.1)
The text was updated successfully, but these errors were encountered: