class_docstr: A common model term.
class_docstr_tok: ["A","common","model","term","."]
code: def categorical(self):
      # If the term has one component, it's categorical if the component is categorical.
      # If the term has more than one component (i.e. it is an interaction), it's categorical if
      # at least one of the components is categorical.
      if self.kind == "interaction":
          return any(
              component.kind == "categoric"
              for component in self.term.components
          )
      return self.kind == "categoric"
  
file_path: bambi/bambi/terms/common.py
imports: import numpy
  import formulae.terms
  from bambi.terms.base import BaseTerm
label_desc: Use image node_id 10 for calling the CommonTerm obj's underlying member method code with example usage: obj.categorical() and returns: unknown, any