linearPredictors function

Calculates linear predictors for different models