公卫百科  > 所属分类  >  R/S+   
[0] 评论[0] 编辑

线性回归的诊断

 You have performed a linear regression. Now you want to verify the model’s quality by running diagnostic checks.

公卫论坛

Start by plotting the model object, which will produce several diagnostic plots:
> m <- lm(y ~ x)
> plot(m)
Next, identify possible outliers either by looking at the diagnostic plot of the residuals 公卫百科
or by using the outlier.test function of the car package:
> library(car)
> outlier.test(m)
Finally, identify any overly influential observations (by using the influence.measures
公卫考场

function, for example).

附件列表


0

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

如果您认为本词条还有待完善,请 编辑

上一篇 获得回归模型的统计量    下一篇 运用回归模型进行预测

同义词

暂无同义词