stan-dev / rstanarm

rstanarm R package for Bayesian applied regression modeling
https://mc-stan.org/rstanarm
GNU General Public License v3.0
382 stars 132 forks source link

help to run stan_surv in rstanarm #602

Open sandravelazco opened 11 months ago

sandravelazco commented 11 months ago

Summary:

I could not install the survival branch of rstanarm on Windows and Mac, I need help to run my analysis.

Description:

Has somebody installed the survival branch in his/her Windows or Mac? I would like to know if someone can help me to run my analysis, which is part of my doctoral thesis. I have the R script; it does not take really a long time (around one hour). I ran my model in the past, but after updating the rstanarm, I have struggled to run it again. I look for information in the stan forum and GitHub to follow discussions and advice to try reinstalling the survival branch using previous releases of R 4.0.2, 4.0.5, and rstanarm 2.21.1, 2.21.3. in Windows 10, 11, and different Macs, but without success. I would really appreciate in case someone could help me, please.

RStanARM Version:

2.21.1, 2.21.3

R Version:

R 4.0.2, 4.0.5

vegetableAndy commented 5 months ago

I also can’t run stan_surv in rstanarm, R reminds me that there is no stan_surv function. Then I found that the stan_surv() function is only available if you install rstanarm from the feature/survival branch on GitHub, I tryed to do so, but an Error occurred during installation, like this: Warning messages: 1: In utils::untar(tarfile, ...) : ‘tar.exe -xf "C:\Users\DELL\AppData\Local\Temp\RtmpoRYmVb\file25f065f2420.tar.gz" -C "C:/Users/DELL/AppData/Local/Temp/RtmpoRYmVb/remotes25f06a532e08"’ returned error code 1 2: In i.p(...) : installation of package‘C:/Users/DELL/AppData/Local/Temp/RtmpoRYmVb/file25f01e94374/rstanarm_2.32.1.tar.gz’had non-zero exit status Has anyone encountered the same issue and resolved it? Could you please help me? I would greatly appreciate it for that!

sandravelazco commented 4 months ago

My friend installed it in Linux, try to do that.