Skip to contents

The maximum of several independent flood-generating processes, each with its own distribution.

Usage

model_competing_risks(
  families,
  data,
  parameters = NULL,
  parameter_values = NULL,
  use_default_flat_priors = NULL
)

Arguments

families

character vector of component distribution family names.

data

a numeric vector of observations, or an analysis_data() frame.

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

x <- c(1200, 1500, 890, 2210, 1870, 1420, 980, 2850, 1740, 1160, 1920, 1380)
model_competing_risks(c("Gumbel", "Gumbel"), x)
#> <corehydro_model> competing_risks: Gumbel + Gumbel
#>   data: 12 exact observations