sensitivitySGD(z, s, d, y, v, beta0, beta1, phi, Pi, psi, tau,
time.points, selection, trigger, groupings,
followup.time,
ci=0.95, ci.method = c("bootstrap", "analytic"),
na.rm = FALSE, N.boot = 100L, N.events = NULL,
interval = c(-100, 100),
oneSidedTest = FALSE, twoSidedTest = TRUE, inCore = TRUE,
verbose = getOption("verbose"), colsPerFile = 1000L,
isSlaveMode = FALSE)NA for unselected records.d) or
censoring.
Can be NA for unselected records.psi is the log-odds ratio of selection.
Pi is the probability of being in the atau.s indicating selection.d that denotes the post-selection event.c(g0,g1), the first element g0 being the
value of z the delineates the first group, the last element
g1 being the value of z which delineates the second group.v after which records are
lost to censoring.NA
values should be removed from the data set.ci.method includes FALSE.TRUE.sensitivity3dbeta0, beta1, phi/Pi/psi, and
time.points. Array dimensions are
length(time.points), length(beta0),
length(beta1), length(psi).quantile if using ci.method
SCE.SCE.sensitivitySGL, sensitivityJR,
Survdata(vaccine.trial)
sens.analysis<-with(vaccine.trial,
sensitivitySGD(z=treatment, s=hiv.outcome, y=followup.yearsART,
d=ARTinitiation, beta0=c(0,-.25,-.5),
beta1=c(0, -.25, -.5), phi=c(0.95, 0.90), tau=3,
time.points=c(2,3), selection="infected",
trigger="initiated ART",
groupings=c("placebo","vaccine"), ci=.95,
ci.method="bootstrap", N.boot=100)
)
sens.analysisRun the code above in your browser using DataLab