postSurvfit | R Documentation |
rstanarm
posterior survival probability estimates from rstanarm for BIG data
postSurvfit(model, ids, ...)
model |
fitted model |
ids |
value of id |
... |
other parameter option, see |
list of predicted value for the given id
##
library(survival)
library(dplyr)
jmstan<-jmstanBig(dtlong=long2,
dtsurv = surv2,
longm=y~ x7+visit+(1|id),
survm=Surv(time,status)~x1+visit,
samplesize=200,
time_var='visit',id='id')
mod1<-jmstan
P2<-postSurvfit(model<-mod1,ids<-c(1,2,210))
pp1<-plot(P2$p1[[1]])
pp1
pp2<-plot(P2$p1[[2]])
pp2
pp3<-plot(P2$p1[[3]])
pp3
##
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.