Transformation Functions

birdman.transform.posterior_alr_to_clr(posterior: Dataset, alr_params: list, dim_replacement: dict, new_labels: Sequence) Dataset

Convert posterior draws from ALR to CLR.

Parameters
  • posterior (xr.Dataset) – Posterior draws for fitted parameters

  • alr_params (list) – List of parameters to convert from ALR to CLR

  • dim_replacement (dict) – Dictionary of updated posterior dimension names e.g. {“feature_alr”: “feature”}

  • new_labels (Sequence) – Coordinates to assign to CLR posterior draws