data(SimData)
#non-parametric estimates
tmp <- survAM.estimate(time =survTime,
event = status,
marker = Y,
data = SimData,
estimation.method = "IPW",
predict.time = 2,
marker.cutpoint = 0,
bootstraps = 50)
tmp
tmp$estimates
#semi-parametric estimates
tmp <- survAM.estimate(time =survTime,
event = status,
marker = Y,
data = SimData,
estimation.method = "Cox",
predict.time = 2,
marker.cutpoint = 0,
bootstraps = 50)
#semi-parametric estimates with asymptotic standard errors
tmp <- survAM.estimate(time =survTime,
event = status,
marker = Y,
data = SimData,
estimation.method = "Cox",
se.method = "asymptotic",
predict.time = 2,
marker.cutpoint = 0,
bootstraps = 50)
Run the code above in your browser using DataLab