View source: R/jointSurroTKendall.R
jointSurroTKendall | R Documentation |
\tau
estimation using numerical integration methodsThis function estimate the Kendall's \tau
based on the joint surrogate model
described in jointSurroPenal (Sofeu et al., 2018), for the evaluation of
a candidate surrogate endpoints, at the individual-level . We used the Monte-carlo and the gaussian Hermite
quadrature methods for numerical integration. in the event of Gaussian Hermite quadrature,
it is better to choose at least 20
quadature nodes for better results.
The actual value of nodes used is the maximum between 20
and nb.gh
jointSurroTKendall(object = NULL, theta, gamma, alpha = 1, zeta = 1,
sigma.v = matrix(rep(0,4),2,2), int.method = 0,
nb.MC.kendall = 10000, nb.gh = 32,
random.generator = 1, random = 0,
random.nb.sim = 0, seed = 0, ui = 1)
object |
An object inheriting from |
theta |
Variance of the individual-level random effect,
|
gamma |
Variance of the trial-level random effect associated with the baseline risk,
|
alpha |
Power parameter associated with
|
zeta |
Power parameter associated with
|
sigma.v |
Covariance matrix of the random effects treatment-by-trial interaction (vSi, vTi) |
int.method |
A numeric, indicates the integration method: |
nb.MC.kendall |
Number of generated points used with the Monte-Carlo to estimate
integrals in the Kendall's |
nb.gh |
Number of nodes for the Gaussian-Hermite quadrature. The default is |
random.generator |
Random number generator to use by the Fortran compiler,
|
random |
A binary that says if we reset the random number generation with a different environment
at each call |
random.nb.sim |
If |
seed |
The seed to use for data (or samples) generation. required if |
ui |
A binary, indicates whether one considered trial random effect associated with
the baseline risk ( |
This function return the estimated Kendall's \tau
Casimir Ledoux Sofeu casimir.sofeu@u-bordeaux.fr, scl.ledoux@gmail.com and Virginie Rondeau virginie.rondeau@inserm.fr
Sofeu C.L., Emura T. and Rondeau V. (2018). One-step validation method for surrogate
endpoints in multiple randomized cancer clinical trials with failure-time endpoints.
Under review
jointSurrSimul
, summary.jointSurroPenal
Ktau1 <- jointSurroTKendall(theta = 3.5, gamma = 2.5, nb.gh = 32)
Ktau2 <- jointSurroTKendall(theta = 1, gamma = 0.8, alpha = 1, zeta = 1,
nb.gh = 32)
###---Kendall's \eqn{\tau} from a joint surrogate model ---###
## Not run:
data.sim <-jointSurrSimul(n.obs=400, n.trial = 20,cens.adm=549,
alpha = 1.5, theta = 3.5, gamma = 2.5, zeta = 1,
sigma.s = 0.7, sigma.t = 0.7,cor = 0.8, betas = -1.25,
betat = -1.25, full.data = 0, random.generator = 1,
seed = 0, nb.reject.data = 0)
###---Estimation---###
joint.surrogate <- jointSurroPenal(data = data.sim, nb.mc = 300,
nb.gh = 20, indicator.alpha = 1, n.knots = 6)
Ktau3 <- jointSurroTKendall(joint.surrogate)
Ktau4 <- jointSurroTKendall(joint.surrogate,nb.MC.kendall = 4000,
seed = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.