plot.sensitivity(sensitivityPStrat)
plot.sensitivity()所属R语言包:sensitivityPStrat
plots the results of calls to the sensitivity functions.
图的灵敏度函数的调用的结果。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Functions used to plot the objects created by the sensitivityPStrat family of functions.
函数用于绘制由函数的sensitivityPStrat家庭的创建的对象。
用法----------Usage----------
## S3 method for class 'sensitivity.1.0d'
plot(x, xlim, ylim,
xlab = expression(beta), ylab = "ACE",
display = c("analytic", "bootstrap"),
ci.select = 1,
col = "black", line.col = col, point.col = col,
analytic.col = "red", analytic.line.col = analytic.col,
analytic.point.col = analytic.col,
bootstrap.col = "green", bootstrap.line.col = bootstrap.col,
bootstrap.point.col = bootstrap.col,
panel.last = NULL, type = "l", ...)
## S3 method for class 'sensitivity.2.0d'
plot(x, xlim, ylim, xlab = expression(beta[0]), ylab = expression(beta[1]),
display = c("analytic", "bootstrap"), col = c(gray(.9), gray(1), gray(.8)),
panel.last = NULL, ...)
## S3 method for class 'sensitivity.1.1d'
plot(x, xlim, ylim,
xlab = expression(beta), ylab = "SCE",
t.point, display = c("analytic", "bootstrap"),
col = "black", line.col = col, point.col = col,
analytic.col = "red", analytic.line.col = analytic.col,
analytic.point.col = analytic.col,
bootstrap.col = "green", bootstrap.line.col = bootstrap.col,
bootstrap.point.col = bootstrap.col,
panel.last = NULL, type = "l", ...)
参数----------Arguments----------
参数:x
sensitivity object
灵敏度对象
参数:t.point
the time point at which data to create the plot.
时间点的数据来创建的图。
参数:display
character vector. Controls which confidence interval to use plot.
特征向量。控制使用的置信区间图。
参数:ci.select
integer vector or all. Selects the confidence interval to be ploted. If set to all then all confidence intervals are plotted. Default value is 1.
整数向量或all。被ploted选择的置信区间。如果设置为all,那么所有的置信区间绘制。默认值是1。
参数:line.col
the color all the lines should be.
颜色的所有行。
参数:point.col
the color all the infinity points should be.
所有无穷远点的颜色。
参数:analytic.col
vector; the color of all of the analytic confidence interval markings. Value are recycled if more confidence intervals are selected then given color values.
向量;分析置信区间标志的所有的颜色。价值被回收,如果有更多的选择置信区间,然后给定的颜色值。
参数:analytic.line.col
vector;the color of all of the analytic confidence interval lines. Value are recycled if more confidence intervals are selected then given color values.
向量;置信区间分析线的所有的颜色。价值被回收,如果有更多的选择置信区间,然后给定的颜色值。
参数:analytic.point.col
vector; the color of all of the analytic confidence interval infinity points. Value are recycled if more confidence intervals are selected then given color values.
向量;置信区间分析无穷大的点的所有的颜色。价值被回收,如果有更多的选择置信区间,然后给定的颜色值。
参数:bootstrap.col
vector; the color of all of the bootstrap confidence interval markings. Value are recycled if more confidence intervals are selected then given color values.
向量;所有的自举置信区间标记的颜色。价值被回收,如果有更多的选择置信区间,然后给定的颜色值。
参数:bootstrap.line.col
vector; the color of all of the bootstrap confidence interval lines. Value are recycled if more confidence intervals are selected then given color values.
向量;所有自举置信区间线的颜色。价值被回收,如果有更多的选择置信区间,然后给定的颜色值。
参数:bootstrap.point.col
vector; the color of all of the bootstrap confidence interval infinity points. Value are recycled if more confidence intervals are selected then given color values.
向量;自举置信区间无穷远点的所有的颜色。价值被回收,如果有更多的选择置信区间,然后给定的颜色值。
参数:xlim, ylim, xlab, ylab, col, panel.last, type
see plot.default
看到plot.default
参数:...
arguments passed to plot.default
参数传递给plot.default
(作者)----------Author(s)----------
Charles Dupont <br>
Department of Biostatistics<br>
Vanderbilt University<br>
参见----------See Also----------
plot.default
plot.default
实例----------Examples----------
data(vaccine.trial)
ansJR<-with(vaccine.trial,
sensitivityJR(z=treatment,s=hiv.outcome,y=logVL,
beta0=c(-1,-.75,-.5,-.25,0,.25,.5,.75,1),
beta1=c(-1,-.75,-.5,-.25,0,.25,.5,.75,1),
phi=c(0.95,0.90,0.80), selection="infected",
groupings=c("placebo","vaccine"),
N.boot=100)
)
plot(ansJR)
ans<-with(vaccine.trial,
sensitivityGBH(z=treatment,s=hiv.outcome,y=logVL,
beta=c(-Inf,-1,-0.75,-0.5,-0.25,0,.25,.5,.75,1,Inf),
selection="infected",
groupings=c("placebo","vaccine"),
empty.principal.stratum=c("not infected","infected"),
ci.method="bootstrap", ci=c(0.95, 0.9, 0.9),
ci.type=c("twoSided", "upper", "lower"),
custom.FUN=function(mu0, mu1, ...) mu1 - mu0,
N.boot=100, method=c("ACE", "T1", "T2"),
upperTest=TRUE, lowerTest=TRUE, twoSidedTest=TRUE)
)
plot(ans, ci.select="all", bootstrap.col=c("red","green","blue"))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|