# MarginalEffectResult


Result of marginal effect estimation for one smooth term.


Usage

``` python
MarginalEffectResult(
    term,
    variable,
    x,
    effect,
    se,
    lower,
    upper,
    level,
    by_values=None,
)
```


## Attributes


`term: str`  
Label for the smooth term.

`variable: str`  
The focal variable.

`x: NDArray`  
Covariate values for the focal variable.

`effect: NDArray`  
Estimated marginal effect (partial effect on the linear predictor).

`se: NDArray`  
Standard errors.

`lower: NDArray`  
Lower confidence band.

`upper: NDArray`  
Upper confidence band.

`level: float`  
Confidence level used.

`by_values: dict[str, float] | None`  
Dict of conditioning variable values, if any.
