LinearTerm.summarise_by_quantiles()#
- LinearTerm.summarise_by_quantiles(samples, x=None, axis=(0, 1), lo=0.1, hi=0.9, center=False, scale=False, indices=None)[source]#
Computes a posterior summary for this term based on quantiles.
- Parameters:
x (
Optional
[Any
]) – Array of covariate values. (default:None
)axis (
Sequence
[int
] |int
) – Indicates the axes ofsamples
that index the posterior samples. (default:(0, 1)
)lo (
float
) – Probability level for lower quantile to include in summary. (default:0.1
)hi (
float
) – Probability level for upper quantile to include in summary. (default:0.9
)center (
bool
) – Whether to center the predictions. (default:False
)scale (
bool
) – Whether to scale the predictions. (default:False
)indices (
Optional
[Sequence
[int
]]) – If not None, only the columns ofx
with these indices are used. (default:None
)
- Return type:
DataFrame