scripts.move_out_rate

Evaluate the inhabit matrices and move out matrices created by inhabit_matrix.py.

This module provides functionality to calculate and predict move-out rates (MOR) for different household types based on historical data. It uses linear regression to extrapolate future move-out rates and applies various factors to adjust the rates based on scenario-specific parameters.

Functions

apply_factors(mor, ip, year, factors1, factors2)

Apply adjustment factors to move-out rates for specific demographic segments.

create_mor(ip, mor, year, all_disaggs, ...)

Create move-out rate matrix for a specific year and save to file.

interpolate(year_1, year_2, factors)

Interpolate factor values between two years on a yearly basis.

linear_regression(x_regression, ...)

Apply linear regression to predict future values.

load_factors(ip, scen_def)

Load factors from move_out_rate_input.xlsx file and apply yearly interpolation.