hpipy.price_index.HedonicIndex.coef_to_index#

static HedonicIndex.coef_to_index(coef_df, log_dep, base_price=1)#

Convert coefficients to an index.

Parameters:
  • coef_df (pd.DataFrame) – Coefficients.

  • log_dep (bool) – Log dependent variable.

  • base_price (float, optional) – Base price. Defaults to 1.

Returns:

Index and imputed values.

Return type:

tuple[np.ndarray, np.ndarray]