Analytics, Data Science, Statistics, Glm, Poisson Regression.
variable != 'Intercept': selected_candidates.remove(variable) # Refitting the model with the remaining variables final_model = smf.glm(f"{response} ~ {' + '.join(selected_candidates)}", data=data, family=sm.families.Poisson()) final_results = final_model.fit() return final_results # True parameters