Skip to Content
R 语言经典实例(原书第 2 版)
book

R 语言经典实例(原书第 2 版)

by J.D. Long, Paul Teetor
June 2020
Beginner to intermediate
522 pages
9h 6m
Chinese
China Machine Press
Content preview from R 语言经典实例(原书第 2 版)
线性回归和方差分析
345
#> rstudent unadjusted p-value Bonferonni p
#> 28 4.46 7.76e-05 0.0031
outlierTest 识别出了模型大多数的离群观察值。在这个例子中,它识别了观察值 28 号,
并且确认它是一个离群值。
11.16.4 另请参阅
参见 11.4 节和 11.17 节。car 包不是 R 的标准发布版的一部分;有关如何安装,请参阅
3.10 节。
11.17 识别有影响的观察值
11.17.1 问题
需要识别对回归模型影响最大的观察值。这对于诊断数据中可能存在的问题很有用。
11.17.2 解决方案
influence.measures 函数报告了几个有用的统计量,用于识别有影响的观察值,并
用星号(*)标记显著的观察值。它的主要参数是回归得到的模型对象:
influence.measures(m)
11.17.3 讨论
这个方案的标题可能是“识别有
过度
影响的观察值”,但这可能是多余的。所有观察值都
会影响回归模型,哪怕只是一点点影响。当统计学家说观察值是有影响的(influential
时,这意味着删除这个观察值将显著改变拟合的回归模型。我们需要识别这些观察结
果,因为它们可能是扭曲我们模型的离群值。我们应该自己调查这些值。
函数 influence.measures 报告了几个统计量:DFBETASDFFITS、协方差比、库克
Cook)距离和帽子矩阵值。如果这些度量值中的任何一个表明一个观察值是有影响的,
那么该函数会在该观察值右侧用一个星号( ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

Aurélien Géron
大规模数据分析和建模:基于 Spark 与 R

大规模数据分析和建模:基于 Spark 与 R

Javier Luraschi, Kevin Kuo, Edgar Ruiz
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey

Publisher Resources

ISBN: 9787111656814