run_mcp: Run MCP for all Timesteps and Sensors

Description Usage Arguments Value Examples

View source: R/regression_functions.R

Description

The function called by the run() method of the MCP class.

Usage

1
2
3
4
5
run_mcp(
  megaframe,
  minimum_required_hours_for_daily_inclusion = 6,
  model_coefficient_is_0 = FALSE
)

Arguments

megaframe

A megaframe with at least one satellite model and the sms model

minimum_required_hours_for_daily_inclusion

The number of data points required for a day to be included in the regression

model_coefficient_is_0

Whether or not the linear regression should be forced to have a zero intercept

Value

A list of model fits to the onsite data, organized by timestep->sensor->model

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
my_mcp <- run_mcp(megaframe)
get_mcp_restults(my_mcp)

## Run MCP for a specific sensor
mf <- filter(megaframe, sensor == 'ghi')
my_mcp <- run_mcp(mf)
get_mcp_results(my_mcp, mf)

## End(Not run)

btaute/powerResource documentation built on Sept. 4, 2020, 4:36 p.m.