Selection of optimal lags and estimation of parameters of a linear regression model with lagging variables (Cherepovets State University Bulletin, 2024)