| validate_input | R Documentation |
This function checks whether the dataset contains all required variables, whether the dependent and numerical variables are numeric, and whether the period variable is formatted correctly (e.g., "2020Q1", "2020M01", or just "2015"). It also performs soft-matching to adjust a provided reference_period to align with the dataset.
validate_input(
dataset,
period_variable,
dependent_variable,
numerical_variables,
categorical_variables,
reference_period = NULL
)
dataset |
A data.frame containing the dataset to be validated. |
period_variable |
A string specifying the name of the period variable column. |
dependent_variable |
A string specifying the name of the dependent variable (usually the sale price). |
numerical_variables |
A character vector with names of numeric quality-determining variables. |
categorical_variables |
A character vector with names of categorical variables (including dummies). |
reference_period |
Optional string for the base period to normalize index values (e.g., "2015", "2020Q1"). |
David Pietersz, Vivek Gajadhar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.