View source: R/calculate_coverage.R
calculate_coverage | R Documentation |
This function calculates the coverage of the independent variables in the normalized conditions dataset to
inform the user about the data range within which the model predictions are valid.
calculate_coverage(
dataframe = NULL,
ref_temp_data = NULL,
outlier_threshold = NULL,
extrapolation_limit = NULL
)
dataframe |
Training or Prediction dataframe from create_dataframe |
ref_temp_data |
An nx2 dataframe with the hourly normalized temperature data corresponding to the facility's location. Colnames: time and temp. |
outlier_threshold |
a numeric indicating the number of datapoints (hours or days, depending on the data interval) below which the temperature observation occurences will be considered an outlier. Default values: 1 for daily data, up to 10 for hourly data. |
extrapolation_limit |
A numeric, beyond the minimum and maximum observed temperatures, up to which the data range may be extrapolated for model prediction. Default: 0.05 |
a list with the following components:
a data frame with temperature bins and associated frequencies of occurence from site temperature data and normalized temperature data.
a dataframe with calculated temperature and time coverage factors, counts of covered and uncovered datapoints in the normalized conditions dataset.
a list with min, max, extrapolated min, and extrapolated max observed temperature values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.