[英]Plot a regression equation with mean standard error in R
I would like to plot values from the image from a model regression, with R.我想用 R 绘制模型回归图像中的值。
https://imgur.com/DDbP29T https://imgur.com/DDbP29T
my plan is to create the equation and plot with the curve function我的计划是用曲线函数创建方程和绘图
eqn = function(x){ZZZ}
curve(eqn, from=0, to=50, n=50)
I expect a logarithmic growth curve我期待对数增长曲线
Something along these "lines" as it were;沿着这些“路线”的东西; Consult ?curve
, ?plot
for further details about the arguments used, and your stats books for why I picked 1.96 as a multiplier for the sum (roughly) of the se values查阅?curve
, ?plot
以获取有关所用参数的更多详细信息,以及有关为什么我选择 1.96 作为这些值的总和(大致)乘数的统计书籍
eqn = function(x){62.259+11.395*log(x) -10.268}
curve(eqn, from=0, to=50, n=50, ylim=c(0,100))
lines(x=seq(0,50),y=eqn(seq(0,50))+ 1.96*8.5, lty=3)
lines(x=seq(0,50),y=eqn(seq(0,50))- 1.96*8.5, lty=3)
(I'm guessing you are trying to reproduce a plot you have seen constructed in the SAS product named "JMP". I used it for a while around 2008-2009, but found it too limited in its capabilities, not to mention becoming quite expensive.) (我猜您正在尝试重现您在名为“JMP”的 SAS 产品中看到的图。我在 2008-2009 年左右使用了一段时间,但发现它的功能太有限,更不用说变得相当昂贵的。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.