transformPredict function

Helper function for custom lcModel classes implementing predict.lcModel()