Created
April 15, 2024 08:44
-
-
Save padpadpadpad/12d0b5116f8a9889af88f7a15ce8629e to your computer and use it in GitHub Desktop.
quick code to check the installation of rstanarm (survival branch)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rstanarm) | |
library(simsurv) | |
?stan_surv | |
data("frail") | |
m_frail <- stan_surv( | |
formula = Surv(eventtime, status) ~ trt + (1 | site), | |
data = frail[1:40,], | |
basehaz = "exp", | |
chains = 1, | |
refresh = 0, | |
iter = 600, | |
seed = 123) | |
m_frail <- stan_surv( | |
formula = Surv(eventtime, status) ~ trt, | |
data = frail[1:40,], | |
basehaz = "exp", | |
chains = 1, | |
refresh = 0, | |
iter = 600, | |
seed = 123) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment