当前位置:网站首页>如何在 R 中执行稳健回归
如何在 R 中执行稳健回归
2022-06-24 18:32:00 【Mrrunsen】
当我们正在使用的数据集中存在异常值或有影响的观察值时,稳健回归是我们可以用作普通最小二乘回归的替代方法。
为了在 R 中执行稳健的回归,我们可以使用 MASS包中的rlm()函数 ,它使用以下语法:
以下分步示例展示了如何在 R 中为给定的数据集执行稳健的回归。
第 1 步:创建数据
首先,让我们创建一个假数据集来使用:
df <- data.frame(x1=c(1, 3, 3, 4, 4, 边栏推荐
- Crmeb multi merchant PC packaging tutorial
- What makes data analysts good- Cassie Kozyrkov
- Tencent cloud TCS: an application-oriented one-stop PAAS platform
- Knowledge points of 2022 system integration project management engineer examination: ITSS information technology service
- How to decompile APK files
- What if the database table structure changes? Smartbi products support one click synchronization
- Digital trend analysis of B2B e-commerce market mode and trading capacity in electronic components industry
- 浅谈云流送多人交互技术原理
- What are the grades of financial products?
- Redpacketframe and openmode packages
猜你喜欢

Crmeb multi merchant PC packaging tutorial

Five skills of selecting embedded programming language
What if the database table structure changes? Smartbi products support one click synchronization

Mcu-08 interrupt system and external interrupt application

Project Management Guide: tips, strategies and specific practices

Ten excellent business process automation tools for small businesses

Etching process flow for PCB fabrication

Several key points for enterprises to pay attention to digital transformation

It is often blocked by R & D and operation? You need to master the 8 steps before realizing the requirements

Business leaders compete for CIO roles
随机推荐
He "painted" what a smart city should look like with his oars
Introduction to yottastore, a new generation of storage engine for VPC TCE cos
Implementation of pure three-layer container network based on BGP
SQL basic tutorial (learning notes)
布隆过滤器综述文章论文阅读:Optimizing Bloom Filter: Challenges, Solutions, and Comparisons
EasyNVR使用Onvif探测设备失败,显示“无数据”是什么原因?
Four security issues of low code and no code development
投资理财产品的钱能随时取出来吗?
Recommend 14 commonly used test development tools
Wechat applet to realize stacked rotation
Leetcode skimming questions - the 72nd biweekly match and 281 weekly match
Exception: Gradle task assembleDebug failed with exit code 1
About pyqt5 to realize paging function (one window implements different interfaces)
On the principle of cloud streaming multi person interaction technology
Redpacketframe and openmode packages
variable
The 'ng' entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Check the spelling of the name. If you include a path, make sure the path is correct, and then
Restful design method
Application service access configuration parameters
Constantly changing the emergency dialing of harmonyos ETS during the new year