Description Usage Arguments Examples
This function generates numeric output for the aic and bic test statistical test. The ouput is a vector and the first value is AIC and the second BIC.
1 | aic_bic_test(model, bestvalue, sample_number)
|
model |
A character string. Model such as '2P', '3PH', '3PC', '4P' or '5P'. |
bestvalue |
A list containing information about parameters such as slopes, change-points, and stats such as RMSE. |
sample_number |
Length of the data frame/number of temperature datapoints. |
1 2 3 4 5 6 7 8 9 | ## Not run:
util = subset(unretrofit_utility, unretrofit_utility$bdbid == 'f3acce86'
& unretrofit_utility$energy_type == 'Elec')
sample_number = nrow(util)
model = '4P'
temp = sort_matrix(util$OAT,util$usage)
bestvalue = create_model(temp$x, temp$y, '5P')
aic_bic_values = aic_bic_test(model, bestvalue, sample_number)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.