class_docstr: Model formula
  
  Allows to describe a model with multiple formulas. The first formula describes the response
  variable and its predictors. The following formulas describe predictors for other parameters
  of the likelihood function, allowing distributional models.
  
  Parameters
  ----------
  formula : str
      A model description written using the formula syntax from the ``formulae`` library.
  *additionals : str
      Additional formulas that describe the
docstr: Check if an additional formula matches the expected format
  
  Parameters
  ----------
  additional : str
      A model formula that describes a model parameter.
  
  Raises
  ------
  ValueError
      If the formula does not contain a response term
  ValueError
      If the response term is not a plain name
code: def check_additional(self, additional: str):
      """Check if an additional formula matches the expected format
  
      Parameters
      ----------
      additional : str
          A model formula that describes a model parameter.
  
      Raises
      ------
      ValueError
          If the formula does not contain a response term
      ValueError
          If the response term is not a plain name
      """
      response = fm.model_description(additional).response
  
      # There's a response in the formula
      if response is None:
          raise ValueError(
              "Additional formulas must contain a response name."
          )
  
      # The response is a name, not a function call for example
      if not isinstance(
          response.term.components[0], fm.terms.variable.Variable
      ):
          raise ValueError("The response must be a name.")
  
      self.additionals_lhs.append(response.term.name)
  
file_path: bambi/bambi/formula.py
imports: import warnings
  from typing import Sequence
  import formulae
label_desc: Use image node_id 3 for calling the Formula obj's underlying member method code with example usage: obj.check_additional(additional) without return types