rp.logistic(rpanel)
rp.logistic()所属R语言包:rpanel
Interactive display of logistic regression with a single covariate
一个单一的协变量logistic回归的互动展示
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function rp.logistic plots a binary or binomial response variable against a single covariates and creates a panel which controls the position of a logistic curve and allows a logistic regression to be fitted to the data and displayed on the plot.
函数rp.logistic对单个协变量和创建一个面板控制的Logistic曲线的位置,并允许logistic回归到安装的数据,并显示在图上绘制一个二进制或二项反应变量。
用法----------Usage----------
rp.logistic(x, y, xlab = NA, ylab = NA, panel.plot = TRUE, line.showing = TRUE,
hscale = NA, vscale = hscale)
参数----------Arguments----------
参数:x
a vector of covariate values.
一个向量的协变量值。
参数:y
a vector of response values with two levels, or a two-column matrix whose first column is the number of "successes" and the second column is the number of "failures" at each covariate value.
响应值的矢量与两个水平,或一个两列的矩阵的第一列的数目是“成功”,和第二列是在每个协变量的值的数目的失败。
参数:xlab
a character variable used for the covariate axis label.
用于字符变量的协变量的轴标签。
参数:ylab
a character variable used for the response axis label.
一个字符变量的响应轴标签。
参数:panel.plot
a logical variable which determines whether the plot is placed inside the control panel.
一个逻辑变量,确定是否的图被放置在控制面板。
参数:line.showing
a logical value determining whether a regression line is shown on the plot when the function starts.
一个逻辑值,该值确定是否示出回归直线的图上的功能启动时。
参数:hscale, vscale
horizontal and vertical scaling factors for the size of the plots. It can be useful to adjust these for projection on a screen, for example. The default values are 1 on Unix platforms and 1.4 on Windows platforms.
水平和垂直缩放因子的大小的图。调整这些投影在屏幕上,例如它可以是有用的。在Unix平台上的默认值是1和1.4在Windows平台上。
Details
详细信息----------Details----------
The control panel allows a logistic regression line to be drawn on the plot and the intercept and slope of the linear predictor altered interactively. The fitted logistic regression can also be displayed.
该控制面板允许logistic回归线要绘制在图上,并以交互方式改变的截距和斜率的线性预测。也可以显示拟合logistic回归。
If y is a vector of responses with two values, these are treated as a factor which is then converted to the (0,1) scale by as.numeric.
如果y是一个向量的反应有两个值,这被视为一个因素,然后再转换为(0,1)规模as.numeric。
The values of the response variable can be "jittered".
的响应变量的值可以被“抖动”。
值----------Value----------
Nothing is returned.
不返回任何值。
参考文献----------References----------
rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.
参见----------See Also----------
rp.regression
rp.regression
实例----------Examples----------
if (interactive()) {
data(river)
attach(river)
rp.logistic(Temperature, Low)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|