= Solution
The code fits a <Bernoulli logistic-regression model>. Conditionally on the covariates, the responses are independent with
$$
Y_i\sim\operatorname{Bernoulli}(p_i),
\qquad
\log\frac{p_i}{1-p_i}=x_i^T\beta,
$$
where the design includes the displayed numerical predictors and indicator columns for factor levels. It maximizes
$$
L(\beta)=\prod_{i=1}^{889}p_i^{Y_i}(1-p_i)^{1-Y_i}.
$$
<Akaike information criterion> is
$$
\operatorname{AIC}=2k-2\ell(\widehat\beta),
$$
where $k$ is the number of fitted parameters. Backward stepwise selection starts from the full model, tentatively removes each eligible term, chooses the removal producing the lowest AIC, and repeats while AIC decreases. It balances fit against model size rather than testing every coefficient at a fixed significance threshold.
Back to article page