Description Usage Arguments See Also Examples
View source: R/retrofit_controller.R
This function returns parameters, stats, change-point(s), and parameter model graphs using run_model
function. Do not use this function for unretrofit data.
If input util
data frame is not in the exact format as unretrofit_utility
, change independent varaible column to 'OAT' and dependent variable to 'usage', add 'energy_type' column and set all the values to either 'Fuel' or 'Elec'. If 'estimated' is column is not present, a column of ones will be added automatically.
1 2 | run_model_retrofit(util, plot_flag = FALSE, step = 0.5, n_pre = 4,
n_post = 4)
|
util |
A data frame with columns: energy_type, OAT, usage, prepost (1 for pre-retrotit, 2 for retrofit and 3 for post-retrofit) and estimated (1 for estimated usage and 0 for actual usage). See |
plot_flag |
A boolean value. Defaults to |
step |
A single numeric value or a vector. If it is a single numeric value, |
n_pre |
A numeric value that determines threshold for population test for pre-retrofit: |
n_post |
A numeric value that determines threshold for population test for post-retrofit: |
run_model
and retrofit_utility
1 2 3 4 5 | ## Not run:
retrofit_util = subset(retrofit_utility, retrofit_utility$bdbid == 846152
& retrofit_utility$energy_type == 'Elec') #retrofit data
retrofit_result = run_model_retrofit(retrofit_util)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.