predict.gevreg {gevreg}R Documentation

Predicted values for fits obtained with gevreg

Description

Provide various types of predictions for gevreg fits.

Usage

## S3 method for class 'gevreg'
predict(object, newdata = NULL,
type = c("response", "location", "scale", "shape", 
"parameter", "probability", "quantile"),
na.action = na.pass, at = 0.5, ...)

Arguments

object

object of class gevreg.

newdata

an optional data frame with variables with which to predict.

type

type of prediction: location, scale and shape return the location, scale and shape parameter of the predicted GEV distribution. parameter returns a data frame with predicted location, scale and shape parameters. probability and quantile return a data frame of predicted probabilities and quantiles with probabilities and quantiles at.

na.action

a function which indicates what should happen when the data contains NAs. Default is na.pass

at

a value or a vector of values to evaluate the predictive probability (type = "probability"), or quantile probabilities used for type = "quantile". Alternatively, with at = "function" a function is returned that takes at as an argument.

...

further arguments passed to or from other methods.

Value

For types location, scale or shape a vector with either the location or the scale or the shape of the predicted distribution. For type parameter a data frame with all GEV parameters. For type probability or quantile a data frame of predicted probabilities or quantiles each column corresponding to an element of at.

See Also

gevreg


[Package gevreg version 0.1-7 Index]