Skip to contents

The Renard hierarchical spatial generalized extreme value model: at-site GEV distributions whose parameters are themselves regressions over site coordinates.

Usage

model_spatial_gev(
  coordinates,
  at_site_data,
  use_copula_dependence = NULL,
  use_location_errors = NULL,
  use_scale_errors = NULL,
  use_shape_errors = NULL,
  use_log_link_for_location = NULL,
  use_log_link_for_scale = NULL,
  parameters = NULL,
  parameter_values = NULL,
  use_default_flat_priors = NULL
)

Arguments

coordinates

a sites-by-2 matrix (or list of length-2 vectors) of site coordinates.

at_site_data

an observations-by-sites matrix (or list of per-observation vectors) of the at-site records.

use_copula_dependence, use_location_errors, use_scale_errors, use_shape_errors

optional logicals gating the spatial-dependence and regression-error terms.

optional logicals selecting a log link for the corresponding regression.

parameters

optional model_parameter() object or list of them, setting bounds, fixed flags, priors, or starting values.

parameter_values

optional numeric vector of all parameter values, applied last.

use_default_flat_priors

logical; set FALSE alongside a custom prior.

Value

An object of class corehydro_model.

Examples

coords <- matrix(c(0, 0, 1, 0, 0, 1), ncol = 2, byrow = TRUE)
obs <- matrix(c(10, 12, 11, 14, 15, 13, 9, 10, 11, 16, 17, 15), ncol = 3, byrow = TRUE)
model_spatial_gev(coords, obs)
#> <corehydro_model> spatial_gev