"R 다중선형회귀분석"의 두 판 사이의 차이

18번째 줄: 18번째 줄:


[[분류: R 회귀분석]]
[[분류: R 회귀분석]]
[[분류: R 데이터 분석]]
[[분류: 회귀분석]]

2020년 4월 3일 (금) 19:08 판

1 개요

R multiple regression
R 다중회귀분석

2 예시: 빵집 매출

df <- read.csv('https://raw.githubusercontent.com/jmnote/z-dataset/master/multiple-regression/bakery-sales.csv')
df
lm1 <- lm(sales ~ floor_space + distance_to_station, data=df)
summary(lm1)
→ 회귀식 [math]\displaystyle{ y = 41.51348 x_1 - 0.34088 x_2 + 65.32392 }[/math]
→ 결정계수 [math]\displaystyle{ R^2 = 0.9452 }[/math]

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}