37. 다중 회귀 분석
in Study on R Programming
Overview
회귀 분석에서 다중 회귀 분석에 대해 알아본다.
다중 회귀 분석
여러 개의 독립 변수가 동시에 1개의 종속 변수에 미치는 영향을 분석할 때 사용하는 분석 방법
다중 회귀 분석 결과 보기
summary(result.lm)
# Call:
# lm(formula = y ~ x1 + x2, data = df) #
# Residuals:
# Min 1Q Median 3Q Max
# -2.01076 -0.22961 -0.01076 0.20809 1.20809 #
# Coefficients:
# Estimate Std. Error t value Pr(>|t|)
# (Intercept) 0.66731 0.13094 5.096 6.65e-07 ***
# x1 0.09593 0.03871 2.478 0.0138 *
# x2 0.68522 0.04369 15.684 < 2e-16 ***
# ---
# Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 #
# Residual standard error: 0.5278 on 261 degrees of freedom
# Multiple R-squared: 0.5975, Adjusted R-squared: 0.5945
# F-statistic: 193.8 on 2 and 261 DF, p-value: < 2.2e-16
상관 계수 R은 0.5975로 독립 변수와 종속 변수 간에 다소 높은 상관 관계를 보이고 있다