c:ma:2019:eg_script
Differences
This shows you the differences between two versions of the page.
c:ma:2019:eg_script [2021/11/09 12:58] – created hkimscil | c:ma:2019:eg_script [2021/11/09 13:00] (current) – hkimscil | ||
---|---|---|---|
Line 6: | Line 6: | ||
summary(m.Sales.PriceShelveLoc) | summary(m.Sales.PriceShelveLoc) | ||
- | plot(Price[ShelveLoc==" | + | plot(Price[ShelveLoc==" |
+ | col=" | ||
+ | main=" | ||
points(Price[ShelveLoc==" | points(Price[ShelveLoc==" | ||
points(Price[ShelveLoc==" | points(Price[ShelveLoc==" | ||
- | legend(" | + | legend(" |
+ | col=c(" | ||
abline(a = 16.89765, b=-0.056698, | abline(a = 16.89765, b=-0.056698, | ||
abline(a = 13.86382, b=-0.056698, | abline(a = 13.86382, b=-0.056698, | ||
abline(a = 11.832984, b=-0.056698, | abline(a = 11.832984, b=-0.056698, | ||
+ | </ | ||
+ | 독립변인 간의 상호작용효과 보기 | ||
+ | < | ||
m.Sales.PriceShelveLoc.ia <- lm(Sales ~ Price + ShelveLoc + Price: | m.Sales.PriceShelveLoc.ia <- lm(Sales ~ Price + ShelveLoc + Price: | ||
summary(m.Sales.PriceShelveLoc.ia) | summary(m.Sales.PriceShelveLoc.ia) | ||
- | plot(Price[ShelveLoc==" | + | plot(Price[ShelveLoc==" |
+ | col=" | ||
+ | main=" | ||
points(Price[ShelveLoc==" | points(Price[ShelveLoc==" | ||
points(Price[ShelveLoc==" | points(Price[ShelveLoc==" | ||
- | legend(" | + | legend(" |
+ | col=c(" | ||
Line 28: | Line 37: | ||
bad <- 11.832984 | bad <- 11.832984 | ||
- | p.good <- -0.055220 -0.010564 | + | p.good <- -0.055220 |
p.medium <- -0.055220 + 0.001984 | p.medium <- -0.055220 + 0.001984 | ||
p.bad <- -0.055220 | p.bad <- -0.055220 | ||
Line 37: | Line 46: | ||
</ | </ | ||
+ |
c/ma/2019/eg_script.1636430310.txt.gz · Last modified: 2021/11/09 12:58 by hkimscil