construct_all_model: Construct table for all models

Description Usage Arguments Examples

View source: R/retrofit_controller.R

Description

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

Usage

1
2
construct_all_model(inter_result, bdbid = NA, energy, fiscal_year = NA,
  n = NA, prepost = 1)

Arguments

inter_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.

Examples

1
2
3
4
5
6
## 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)
pre_best_df = construct_all_model(retrofit_result$pre, bdbid = 846152, energy = 'Elec')
## End(Not run)

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