-
-
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
stan_surv in rstanarm 2.21.3 #566
Comments
I am having the same issue using R 4.2.1 for Windows 10 and rstanarm 2.21.3; no
This suggest no
Which suggests the model works. Have not tested more complex models yet. |
The git repo doesn't have the *.Rd files committed, so you'll need to run roxygen2 to build the documentation files.
|
Hi all, I got same problem and would like to figure out the solution. I used an example to test if the stan_surv works and found the following comment ``` stan_surv_exponential <- stan_surv(formula = Surv(time, status) ~ x,
+ data = leukemia,
+ basehaz = "exp")
Error in stan_surv(formula = Surv(time, status) ~ x, data = leukemia, :
could not find function "stan_surv" I downloaded the rstanarm-feature-survival from Github branch and installed it to the library locally. The thing is rstanarm-feature-survival is installed in the library, but when I call the rstanarm pacakge, it didn't work because of the name (stan_surv.R is in the rstanarm-feature-survival, but not in the rstanarm). So I copied the stan_surv.R from rstanarm-feature-survival to rstanarm in the library, it didn't work as well. I've also already tried the methods discussed above, but none of them works, I would much appreciate it if anyone could share the solution that works. Thank you! |
Summary:
Unable to use stan_surv function.
Description:
After updating the last release of rstanarm (2.21.3) I am not able to find the stan_surv function for Bayesian survival models. I was using them in the previous version 2.21.2 without any problem.
I tried the instructions in https://github.com/stan-dev/rstanarm#survival-analysis-version but it didn't work.
It worked using remotes::install_github('stan-dev/rstanarm@feature/survival')
Reproducible Steps:
If applicable, the steps required to reproduce the issue. If you have a reproducible example, please include it.
RStanARM Version:
2.21.3
R Version:
R 4.1.2
Operating System:
macOS Big Sur 11.4
The text was updated successfully, but these errors were encountered: