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()

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