calculate_hedonic_imputationmatrix | R Documentation |
Based on a hedonic model, a series of imputed values is calculated in below steps: 1: for every period average imputed prices are estimated with the 1st period as base period. 2: the above is repeated for each possible base period. This result in an equal number of series as the number of periods. 3: All series are re-estimated with a time series model (state space). This step is optionally skipped with a parameter (state_space_model = NULL) 4: the series imputed values are transformed into index series. This matrix can be used for an index calculations according to the HMTS method.
calculate_hedonic_imputationmatrix(
dataset,
period_variable,
dependent_variable,
continuous_variables,
categorical_variables,
periods_in_year,
number_of_observations = TRUE,
production_since = NULL,
number_preliminary_periods
)
dataset |
table with data (does not need to be a selection of relevant variables) |
period_variable |
variable in the dataset with the period |
dependent_variable |
usually the sale price |
continuous_variables |
vector with quality-determining continues variables (numeric, no dummies) |
categorical_variables |
vector with categorical variables (also dummy) |
periods_in_year |
if month, then 12. If quarter, then 4, etc. (default = 4) |
number_of_observations |
number of observations per period (default = TRUE) |
production_since |
1 period in the format of the period_variable. See description above (default = NULL) |
number_preliminary_periods |
number of periods that the index is preliminary. Only works if production_since <> NULL. default = 3 |
Parameter 'production_since': To simulate a series, where 1 period a time expires (as in production), a manual choice in the past is possible. Until this period, all periods are imputed. After that, 1 period is added.
$Matrix_HMTS_index table with index series based on estimations with time series re-estimations $Matrix_HMTS table with estimated values based on time series re-estimations $Matrix_HMS_index table with index series based on estimations with the hedonic model $Matrix_HMS table with estimated values based on the hedonic model $Matrix_HMTS_analysis table with analysis values of the time series model per base period
Farley Ishaak
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.