plr_var | R Documentation |
This function returns the standard deviation of a PLR calculated from a linear model
plr_var(mod, per_year)
mod |
linear model |
per_year |
number of data points in a given year baesd on which time scale was selected |
Returns standard deviation of PLR value
# build var_list var_list <- plr_build_var_list(time_var = "timestamp", power_var = "power", irrad_var = "g_poa", temp_var = "mod_temp", wind_var = NA) # Clean Data test_dfc <- plr_cleaning(test_df, var_list, irrad_thresh = 100, low_power_thresh = 0.01, high_power_cutoff = NA) # Perform the power predictive modeling step test_xbx_wbw_res <- plr_xbx_model(test_dfc, var_list, by = "week", data_cutoff = 30, predict_data = NULL) # obain standard deviation from model mod <- lm(power_var ~ time_var, data = test_xbx_wbw_res) plr_sd <- plr_var(mod, per_year = 52)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.