Fit a new GLM In this function we create a new instance a (constrained) glm fit.

ConstrainedGlm.fit_new_glm(formula, family, data, fall_back_to_glm, ...)

Arguments

formula

the formula to use for the regression

family

the family used for fitting the GLM (binomial, etc)

data

the data to train the glm on

fall_back_to_glm

boolean should we fall back to traditional glm

...

the other arguments passed to GLM

Value

a fitted glm