predJRML | R Documentation |
joineRML
prediction of survival probability and longitudinal marker using joineRML
for BIG data
predJRML(model, ids, dtlong, dtsurv)
model |
fitted model object |
ids |
value of id |
dtlong |
longitudinal data |
dtsurv |
survival data |
list of predicted values for the given id
##
library(survival)
library(dplyr)
jmcs1<-joinRMLBig(dtlong=long2,
dtsurv = surv2,
longm=y~ x7+visit,
survm=Surv(time,status)~x1+visit,
rd=~ visit|id,
timeVar='visit',
samplesize=200,
id='id')
mod4<-jmcs1
P2<-predJRML(model<-mod4,ids<-c(10),dtlong=long2,dtsurv=surv2)
plot(P2$plong[[1]])
plot(P2$psurv[[1]])
##
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.