Function to pull objects created in linear regression models and are used to predict subdaily meteorology. This function is called in lm_ensemble_sims() to downscale a meteorology product. Linear regression models are created in gen.subdaily.models()
Usage
subdaily_pred(
newdata,
model.predict,
Rbeta,
resid.err = FALSE,
model.resid = NULL,
Rbeta.resid = NULL,
n.ens
)Arguments
- newdata
dataframe with data to be downscaled
- model.predict
saved linear regression model
- Rbeta
matrix with Rbetas from saved linear regression model
- resid.err
logical, whether to include residual error or not
- model.resid
data.frame of model residuals
- Rbeta.resid
data.frame of Rbeta residuals
- n.ens
number of ensembles to create
Details
Subdaily Prediction Pulls information from linear regression models to predict subdaily meteorology
See also
Other tdm - Temporally Downscale Meteorology:
gen.subdaily.models(),
lm_ensemble_sims(),
model.train(),
nc.merge(),
predict_subdaily_met(),
save.betas(),
save.model(),
temporal.downscale.functions()