fit_weights_model function

Method for fitting weight models