diff --git a/bambi/priors/scaler.py b/bambi/priors/scaler.py index 8a3a8833..c605c14e 100644 --- a/bambi/priors/scaler.py +++ b/bambi/priors/scaler.py @@ -115,7 +115,8 @@ def scale_common(self, term): # Iterate over columns in the data for i, value in enumerate(term.data.T): if term.kind == "interaction": - # For interaction terms, distinguish cases where all factor terms are categorical + # For interaction terms, distinguish cases where all factor terms + # are categorical all_categoric = all( component.kind == "categoric" for component in term.term.components )