aic_bic_test: Calculates AIC and BIC

Description Usage Arguments Examples

View source: R/modeller.R

Description

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.

Usage

1
aic_bic_test(model, bestvalue, sample_number)

Arguments

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.

Examples

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)

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