get_coefs

hhpy.modelling.get_coefs(model: object, y: Union[Sequence[T_co], str])[source]

get coefficients of a linear regression in a sorted data frame

Parameters:
  • model – model object
  • y – name of the coefficients
Returns:

pandas DataFrame containing the coefficient names and values