Prediction of a PrecipitationOccurrenceModel model object
Prediction of a PrecipitationOccurrenceModel model object
It is a wrapper of predict.glm method for the a PrecipitationOccurrenceModel model object S3 class.
## S3 method for class 'PrecipitationOccurrenceModel'predict( object, newdata =NULL, type ="response", previous =NULL, endogenous =NULL,...)## S3 method for class 'PrecipitationOccurrenceMultiSiteModel'predict(object,...)## S3 method for class 'PrecipitationAmountModel'predict( object, newdata =NULL, origin_newdata =NA, precipitation.value.random.generation =FALSE,...)
Arguments
object: model returned by PrecipitationOccurrenceModel
newdata: predictor or exogenous variables
type: see predict.glm. Default is "response". See predict.glm.
previous: logical vector containing previously occurred states.
endogenous: String vector containing the name of the endogenous variables. It is used if the endogenous variables are more than one, otherwise is set NULL(Default).
...: further arguments
origin_newdata: character string containing the date corresponding the first row of newdata
precipitation.value.random.generation: logical value. If it is FALSE (Default) the method predict.PrecipitationAmountModel returns conditioned random values, otherwise these values are converted to precipitation values through their observed non-parametric distributions.
Returns
A vector or a data frame reporting predicted time series for each station.