model.train.Rd
Function to create linear regression models for specific met variables. This is used in conjunction with temporal.downscale.functions() to generate linear regression statistics and save their output to be called later in lm_ensemble_sims().
model.train(dat.subset, v, n.beta, resids = resids, threshold = NULL, ...)
dat.subset | data.frame containing lags, next, and downscale period data |
---|---|
n.beta | number of betas to pull from |
resids | TRUE or FALSE, whether to use residuals or not |
threshold | NULL except for surface_downwelling_shortwave_radiation, helps with our distinction between day and night (no shortwave without sunlight) |
TDM Model Train Linear regression calculations for specific met variables
Other tdm - Temporally Downscale Meteorology: gen.subdaily.models
,
lm_ensemble_sims
, nc.merge
,
predict_subdaily_met
,
save.betas
, save.model
,
subdaily_pred
,
temporal.downscale.functions