Get Confidence Interval For One Point On Regression Line In R?
问题 How do I get the CI for one point on the regression line? I'm quite sure I should use confint() for that, but if I try this confint(model,param=value) it just gives me the same number as if I just type in confint(model) if I try without a value, it does not give me any values at all. What am I doing wrong? 回答1: You want predict() instead of confint() . Also, as Joran noted, you'll need to be clear about whether you want the confidence interval or prediction interval for a given x. (A