线性回归的诊断
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).
附件列表
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
如果您认为本词条还有待完善,请 编辑
上一篇 获得回归模型的统计量 下一篇 运用回归模型进行预测