construct_model_table: Construct model table

Description Usage Arguments Note Examples

View source: R/modeller.R

Description

This functions returns a data frame given a nested list of individual model result.

Usage

1
2
construct_model_table(best_result, bdbid = NA, energy,
  fiscal_year = NA, n = NA, prepost = 1)

Arguments

best_result

A list containing information about parameters such as slopes, change-points, and stats such as RMSE.

bdbid

Building id, which identifies the building or the dataset. Defaults to NA.

energy

A character string. Energy Type, either 'Elec' or 'Fuel'.

fiscal_year

Fiscal year. Defaults to NA.

n

number of observed points (independent variable) in utility data frame of a building. Defaults to NA.

prepost

A numeric value. Defaults to be 1. This indicates if it is unretrofit or retrofit. See unretrofit_utility for more information about prepost.

Note

If more than half of energy usage points of a facility are zeros, that faciltiy will be skipped.

Examples

1
2
3
4
5
6
util = subset(unretrofit_utility, unretrofit_utility$bdbid == 'f3acce86'
			& unretrofit_utility$energy_type == 'Elec')
inter_result = run_model(util)
best_result = main_best_model_func(inter_result)
construct_model_table(best_result, 'f3acce86', 'Elec', 2017)
construct_model_table(inter_result[['3PC']], 'f3acce86', 'Elec', 2017)

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