statsmodels.genmod.generalized_estimating_equations.GEE.predict¶
-
GEE.
predict
(params, exog=None, offset=None, exposure=None, linear=False)[source]¶ Return predicted values for a marginal regression model fit using GEE.
- Parameters
- paramsarray_like
Parameters / coefficients of a marginal regression model.
- exogarray_like,
optional
Design / exogenous data. If exog is None, model exog is used.
- offsetarray_like,
optional
Offset for exog if provided. If offset is None, model offset is used.
- exposurearray_like,
optional
Exposure for exog, if exposure is None, model exposure is used. Only allowed if link function is the logarithm.
- linearbool
If True, returns the linear predicted values. If False, returns the value of the inverse of the model’s link function at the linear predicted values.
- Returns
An
array
of
fitted
values
Notes
Using log(V) as the offset is equivalent to using V as the exposure. If exposure U and offset V are both provided, then log(U) + V is added to the linear predictor.