hpipy.price_model.HedonicModel.fit#
- HedonicModel.fit(estimator='base', log_dep=True, dep_var=None, ind_var=None, **kwargs)[source]#
Fit the hedonic model and generate index coefficients.
- Parameters:
estimator (str, optional) – Estimator type. One of “base”, “robust”, or “weighted”. Defaults to “base”.
log_dep (bool, optional) – Log transform the dependent variable. Defaults to True.
dep_var (str | None, optional) – Dependent variable. Defaults to None.
ind_var (list[str] | None, optional) – Independent variable(s). Defaults to None.
kwargs (Any)
- Returns:
The hedonic house price model.
- Return type:
Self