假设我有两个变量权重和年龄,我必须在这种情况下找到99%的置信区间:
a=lm(weight~age)
我知道纵坐标是直接截距,但为什么这不起作用:
predict(a, newdata=data.frame(age=intercept), interval='confidence', level=0.99)
为什么这不正确?我想知道这些案例的正确命令.
statistics r
r ×1
statistics ×1