mesmer.stats.get_lambdas_from_covariates#
- mesmer.stats.get_lambdas_from_covariates(lambda_coeffs, yearly_pred)#
function that relates fitted coefficients and the yearly predictor to the lambdas. We usee a logistic function between 0 and 2 to estimate the lambdas, see
lambda_function
.- Parameters:
lambda_coeffs (
xr.DataArray
) – The parameters of the power transformation for each gridcell and month, with dims (months, coeff, n_gridcells) calculated usingfit_yeo_johnson_transform
.yearly_pred (
xr.DataArray
) – yearly values used as predictors for the lambdas. Must have shape shape (n_years, n_gridcells).
- Returns:
lambdas (
xr.DataArray
of shape (months, n_gridcells, n_years)) – The parameters of the power transformation for each gridcell month and year