I have created a logistic regression in R and would like to use the trained model to create an predict function (lets say in Excel). How can I convert the coefficients into a predict equation?
glm(formula = is_bad ~ is_rent + dti + bc_util + open_acc + pub_rec_bankruptcies +
chargeoff_within_12_mths, family = binomial, data = df)
Deviance Residuals:
Min 1Q Median 3Q Max
-0.8659 -0.5413 -0.4874 -0.4322 2.4289
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) -2.9020574 0.0270641 -107.229 < 2e-16 ***
is_rentTRUE 0.3105513 0.0128643 24.141 < 2e-16 ***
dti 0.0241821 0.0008331 29.025 < 2e-16 ***
bc_util 0.0044706 0.0002561 17.458 < 2e-16 ***
open_acc 0.0030552 0.0012694 2.407 0.0161 *
pub_rec_bankruptcies 0.1117733 0.0163319 6.844 7.71e-12 ***
chargeoff_within_12_mths -0.0268015 0.0564621 -0.475 0.6350
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
(Dispersion parameter for binomial family taken to be 1)
Null deviance: 173006 on 233017 degrees of freedom
Residual deviance: 170914 on 233011 degrees of freedom
(2613 observations deleted due to missingness)
AIC: 170928
Number of Fisher Scoring iterations: 4