PTMLocScalePredictions#
- class liesel_ptm.PTMLocScalePredictions(samples, model, y=None, **kwargs)[source]#
Bases:
object
Posterior predictions for a penalized transformation model.
- Parameters:
model (
PTMLocScale
) – The model object.y (
Optional
[Any
]) – Response observations to use in predictions. IfNone``(default), the observed values are extracted from the model object. (default: ``None
)**kwargs – Values to use for all terms in the location and scale model parts. Must have appropriate shapes. For terms that are not explicitly specified, the observed values are extracted from the model object.
Methods
Predicts the response's conditional cumulative distribution function.
Predicts the location.
Predicts the response's conditional log probability.
Predicts the transformed residuals and the derivative of the normalization.
Predicts the derivative of the normalization.
Predicts the inverse of the normalization function.
Predicts the response's conditional probability density.
Predicts the conditional response quantiles at probability level
p
.Predicts the residual quantiles at probability level
p
.Evaluates the residual's posterior cumulative distribution function.
Evaluates the residual's posterior log probability function.
Evaluates the residual's posterior density function.
Predicts the residuals.
Predicts the location.
Predicts the transformed residuals.
Predicts the derivative of the transformation.
Predicts the inverse of the normalization function.
Predicts the transformed residuals.
Predicts the derivative of the transformation.
Generates random samples from the posterior predictive distribution.
Returns a summary dataframe to quickly assess the response's conditional distribution.
Returns a summary dataframe to quickly assess the response's conditional distribution based on a random sample from the posterior.
Returns a summary dataframe to quickly assess the transformation function.
Attributes