model_predict
Get predictions from a fitted model at chosen predictor values or for new cases, with confidence levels.
Instructions
Predictions from a fitted model. Pass at for estimated marginal means at chosen predictor values (e.g. {'dose': [0, 10, 20]}), holding everything else at its average - this is the usual way to describe what a model implies. Pass newdata for predictions on specific new cases, or neither for fitted values on the original data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Predictor values for estimated marginal means, e.g. {'age': [20, 40, 60]}. | |
| type | No | Prediction scale: 'response' or 'link'. | response |
| model | Yes | Name of a fitted model in the session. | |
| digits | No | Decimal places. | |
| newdata | No | New cases as columns, e.g. {'age': [30, 40], 'sex': ['m', 'f']}. | |
| conf_level | No | Confidence level. |