R로 시작하는 회귀 분석
Richie Cotton
Data Evangelist at DataCamp
$x$가 0일 때의 $y$ 값.
$x$를 1 올릴 때 $y$가 증가하는 양.
$y = intercept + slope * x$







lm(total_payment_sek ~ n_claims, data = swedish_motor_insurance)
Call:
lm(formula = total_payment_sek ~ n_claims, data = swedish_motor_insurance)
Coefficients:
(Intercept) n_claims
19.994 3.414
Call:
lm(formula = total_payment_sek ~ n_claims, data = swedish_motor_insurance)
Coefficients:
(Intercept) n_claims
19.994 3.414
$total\_payment\_sek = 19.994 + 3.414 * n\_claims$
R로 시작하는 회귀 분석