ev_trawl_fit: Fitting the LTME or EV Trawl model.

Description Usage Arguments Value Examples

View source: R/fit.R

Description

Fitting the LTME or EV Trawl model.

Usage

1
2
3
4
5
6
7
8
9
ev_trawl_fit(
  data,
  depth,
  method,
  mode = "two-stage",
  type = "exp",
  bounds = "config",
  cl = NULL
)

Arguments

data

Data to fit.

depth

Depth to fit.

method

Selecting "GMM" or "PL".

mode

Either one-stage/full ("full") or two-stage ("two-stage").

type

Trawl type (e.g. "exp", "sum_exp", etc.)

bounds

Parameters bounds. "config" uses trawl cfg, "multiplier" uses scaled initial guess.

cl

Parallel cluster, defaults to NULL.

Value

Vector of fitted parameters.

Examples

1
2
3
4
5
n <- 2000
test_column <- 2
data <- pollution_data[seq_len(n), test_column]
depth <- 5
ev_trawl_fit(data, depth, method = "GMM")

valcourgeau/gammaextremes documentation built on Sept. 9, 2021, 5:42 a.m.