View source: R/plotTreatPredJointSurro.R
plotTreatPredJointSurro | R Documentation |
Plot the prediction of the treatment effect on the true endpoint based on the observed treatment effect
on the surrogate endpoint, with the prediction interval: results from the one-step Joint surrogate model
for evaluating a canditate surrogate endpoint. The graphic also includes vertical lines that cut
the x axis to the values of ste. A hatched rectagle/zone indicates the values of
\beta
S that predict a non zeto
\beta
T, according to the number of value
for STE
and the shape of the upper confidence limit for the prediction model.
plotTreatPredJointSurro(
object,
from = -3,
to = 2,
type = "Coef",
var.used = "error.estim",
alpha. = 0.05,
n = 1000,
lty = 2,
d = 3,
colCI = "blue",
xlab = "beta.S",
ylab = "beta.T.predict",
pred.int.use = "up",
main = NULL,
add.accept.area.betaS = TRUE,
ybottom = -0.05,
ytop = 0.05,
density = 20,
angle = 45,
legend.show = TRUE,
leg.x = NULL,
leg.y = 2,
legend = c("Prediction model", "95% prediction Interval", "Beta.S for nonzero beta.T",
"STE"),
leg.text.col = "black",
leg.lty = c(1, 2, 4, NA),
leg.pch = c(NA, NA, 7, 1),
leg.bg = "white",
leg.bty = "n",
leg.cex = 0.85,
...
)
object |
An object inheriting from |
from |
The range (with |
to |
The range (with |
type |
The type of graphic, |
var.used |
This argument can take two values. The first one is |
alpha. |
The confidence level for the prediction interval. The default is |
n |
An integer that indicates the number of values for |
lty |
The line type. Line types can either be specified as an integer
(0=blank, 1=solid (default), 2=dashed, 3=dotted, 4=dotdash, 5=longdash, 6=twodash) or as one
of the character strings |
d |
The desired number of digits after the decimal point for parameters and confidence intervals. Default of 3 digits is used. |
colCI |
The color used to display the confidence interval. |
xlab |
A title for the x axis. |
ylab |
A title for the y axis. |
pred.int.use |
A character string that indicates the bound of the prediction interval
to use to compute the STE. Possible values are |
main |
Title of the graphics |
add.accept.area.betaS |
A boolean that indicates if the plot should add acceptance area for
|
ybottom |
A scalar for the left y bottom position of the rectangle on the x-axis associated with acceptable
value for |
ytop |
A scalar for the top right y position of the rectangle on the x-axis associated with acceptable
value for |
density |
The density of shading lines, in lines per inch. The default
value of 'NULL' means that no shading lines are drawn. A
zero value of 'density' means no shading lines whereas
negative values (and 'NA') suppress shading (and so allow color filling). The default is |
angle |
Angle (in degrees) of the shading lines. The default is |
legend.show |
A boolean that indicates if the legend should be displayed |
leg.x |
The x co-ordinate to be used to position the legend. |
leg.y |
The y co-ordinate to be used to position the legend. The default is |
legend |
A character or expression vector of length >= 1 to appear in the legend |
leg.text.col |
The color used for the legend text. The default is |
leg.lty |
The line type, width and color for the legend box (if bty = "o"). |
leg.pch |
= The plotting symbols appearing in the legend, as numeric vector or a
vector of 1-character strings (see points). Unlike |
leg.bg |
The background color for the legend box. (Note that this is only used if bty |
leg.bty |
The type of box to be drawn around the legend. The allowed values are |
leg.cex |
Character expansion factor relative to current par( |
... |
other unused arguments |
For a considered treatment effects on the surrogate enpoint, plot the associated treatment effects on the true endpoint predicted from the joint surrogate model with the prediction interval.
Casimir Ledoux Sofeu casimir.sofeu@u-bordeaux.fr, scl.ledoux@gmail.com and Virginie Rondeau virginie.rondeau@inserm.fr
Burzykowski T, Buyse M (2006). "Surrogate threshold effect: an alternative measure for meta-analytic surrogate endpoint validation." Pharmaceutical Statistics, 5(3), 173-186.ISSN 1539-1612.
Sofeu, C. L. and Rondeau, V. (2020). How to use frailtypack for validating failure-time surrogate endpoints using individual patient data from meta-analyses of randomized controlled trials. PLOS ONE; 15, 1-25.
jointSurroPenal, jointSurroCopPenal, predict.jointSurroPenal
## Not run:
###--- Joint surrogate model ---###
###---evaluation of surrogate endpoints---###
data(dataOvarian)
joint.surro.ovar <- jointSurroPenal(data = dataOvarian, n.knots = 8,
init.kappa = c(2000,1000), indicator.alpha = 0,
nb.mc = 200, scale = 1/365)
## "HR"
plotTreatPredJointSurro(joint.surro.ovar, from = 0, to = 4,
type = "HR", lty = 2, leg.y = 13)
## or without acceptance area for betaS:
plotTreatPredJointSurro(joint.surro.ovar, from = 0, to = 4,
type = "HR", lty = 2, leg.y = 13,
add.accept.area.betaS = FALSE)
## "log HR"
plotTreatPredJointSurro(joint.surro.ovar, from = -2, to = 2,
type = "Coef", lty = 2, leg.y = 3.5)
### For a value of ste greater than 0 (HR > 1), which induces deleterious
### treatment effet, argument "pred.int.use" can be set to "lw"
plotTreatPredJointSurro(joint.surro.ovar, from = 0, to = 2,
type = "HR", lty = 2, leg.y = 4,
pred.int.use = "lw")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.