Performs the model fitting and the weight assignment based on different strategies for each individual ID
Useful links