compactModel = compact(model)
compact returns a predictive model that preserves predictions for supported statistics model objects.