run_model_retrofit: Calculates and graphs parameter based models for retrofit...

Description Usage Arguments See Also Examples

View source: R/retrofit_controller.R

Description

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.

Usage

1
2
run_model_retrofit(util, plot_flag = FALSE, step = 0.5, n_pre = 4,
  n_post = 4)

Arguments

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 retrofit_utility for more information about data format.

plot_flag

A boolean value. Defaults to FALSE. If set to FALSE, it will not return any plots.

step

A single numeric value or a vector. If it is a single numeric value, create_model will be used to find change-point(s). If it is a vector with more than one component, create_model_2 will be used. Defaults to 0.5. Adjust step-size depending on independent varaiables.

n_pre

A numeric value that determines threshold for population test for pre-retrofit: thereshold = number_of_independent_variables/n. Defaults to 4. See pop_test.

n_post

A numeric value that determines threshold for population test for post-retrofit: thereshold = number_of_independent_variables/n. Defaults to 4. See pop_test.

See Also

run_model and retrofit_utility

Examples

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)

tinnaing347/bRema documentation built on Aug. 23, 2019, 9:15 p.m.