linesHyperb.lm(sfsmisc)
linesHyperb.lm()所属R语言包:sfsmisc
Plot Confidence or Prediction Hyperbolas around a Regression Line
回归直线周围的图信心或预测双曲线
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Add confidence/prediction hyperbolas for y(x_0) to a plot with data or regression line.
添加的信心/预测双曲线y(x_0)的数据或回归线的图。
用法----------Usage----------
linesHyperb.lm(object, c.prob=0.95, confidence=FALSE,
k=if (confidence) Inf else 1,
col=2, lty=2, do.abline=TRUE)
参数----------Arguments----------
参数:object
result of lm(.).
结果lm(.)。
参数:c.prob
coverage probability in (0,1).
在(0,1)的覆盖概率。
参数:confidence
logical; if true, do (small) confidence band, else, realistic prediction band for the mean of k observations.
逻辑,如果消息属实,(小)置信带,否则,现实的预测波段平均k观察。
参数:k
integer or Inf; assume k future observations; k = Inf corresponds to confidence intervals (for y).
整数或Inf;承担k未来的观测,“k = Inf对应的置信区间(Y)。
参数:col, lty
attributes for the lines to be drawn.
属性lines进行绘制。
参数:do.abline
logical; if true, the regression line is drawn as well.
逻辑,如果情况属实,回归线,以及绘制。
注意----------Note----------
With predict.lm(*, interval=) is available, this function linesHyperb.lm is only slightly more general for its k argument.
predict.lm(*, interval=)是,这个功能linesHyperb.lmk参数只是稍微一般。
(作者)----------Author(s)----------
Martin Maechler, Oct 1995
参见----------See Also----------
predict.lm(*, interval=) optionally computes
predict.lm(*, interval=)选择性地计算
实例----------Examples----------
data(swiss)
plot(Fertility ~ Education, data = swiss) # the data[的数据]
(lmS <- lm(Fertility ~ Education, data = swiss))
linesHyperb.lm(lmS)
linesHyperb.lm(lmS, conf=TRUE, col="blue")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|