Skip to Content
R Cookbook
book

R Cookbook

by JD Long, Paul Titer, Jee -Won Lee
May 2022
Beginner to intermediate
667 pages
16h 17m
Korean
Insight
Content preview from R Cookbook
Cookbook
427
11.23 집단 평균 간의 차이 알아내기
library(faraway)
data(rats)
interaction.plot(rats$poison, rats$treat, rats$time)
󺋇󺺋󽴔󽴛󽴔󻖐󼬇󻱠󻭸󽴔󺋇󺱧󼧓
각각의 선은
poison
대비
time
을 그려내고 있다. 선들 간에 차이가 있는 이유는, 각
선들이 서로 다른
treat
값을 나타내고 있기 때문이다. 선들은 서로 평행해야 하지만
맨 위의 두 개는 그다지 평행해 보이지 않는다. 그래프를 보면
treat
의 값이 달라짐
에 따라 선들이 꺾어졌다는 사실을 알 수 있고, 그것은
poison
time
관계에 비선형
성이 있다는 뜻이 된다.
즉, 상호작용이 있을 수도 있기 때문에 확인해 봐야 하는 것이다. 이 데이터의 경
우에는 상호작용이 있다는 건 맞지만, 그것이 통계적으로 유의미하지는 않다. 교훈
은 명확하다. 시각적으로 확인해 보면 좋지만, 그것만으론 안전하지 않다. 그러니 통
계적인 확인도 함께 하자.
󺠣󽴔󻨛󻨓󻇃󺋿
레시피
11
.
7
을 참고하라.
11.23
󻺠󺞷󽴔󼢘󺊯󽴔󺃓󻰧󽴔󼃷󻱃󽴔󻨛󻨓󺖃󺋿
󻀇󻳫
데이터가 두 집단으로 나뉘어 있으며, 분산분석 검정을 통해 해당 집단들이 유의미
R Cookbook 2판_최종.indd 427 21. 4. 27. 오전 11:07
R
428
11장 선형회귀와 분산분석
하게 ...
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

R Cookbook

R Cookbook

Paul Teetor
R Graphics Cookbook

R Graphics Cookbook

Winston Chang
R Cookbook, 2nd Edition

R Cookbook, 2nd Edition

JD Long, Paul Teetor

Publisher Resources

ISBN: 9788966262984