predJRML: Prediction using 'joineRML'

View source: R/prediction.R

predJRMLR Documentation

Prediction using joineRML

Description

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

Usage

predJRML(model, ids, dtlong, dtsurv)

Arguments

model

fitted model object

ids

value of id

dtlong

longitudinal data

dtsurv

survival data

Value

list of predicted values for the given id

Examples

   
##
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]])
##
   

jmBIG documentation built on May 29, 2024, 6:04 a.m.

Related to predJRML in jmBIG...