Learn R Programming

jmBIG (version 0.1.3)

predJRML: Prediction using joineRML

Description

prediction of survival probability and longitudinal marker using joineRML for BIG data

Usage

predJRML(model, ids, dtlong, dtsurv, ...)

Value

list of predicted values for the given id

Arguments

model

fitted model object

ids

value of id

dtlong

longitudinal data

dtsurv

survival data

...

other parameter options, see dynSurv

Examples

Run this code
   # \donttest{
##
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]])
##
   # }

Run the code above in your browser using DataLab