infer.autocor.amount: infer.autocor.amount

View source: R/GWexPrec_lib.r

infer.autocor.amountR Documentation

infer.autocor.amount

Description

special case of infer.dep.amount where there is only one station

Usage

infer.autocor.amount(
  P.mat,
  pr.state,
  isPeriod,
  nLag,
  th,
  parMargin,
  typeMargin,
  nChainFit,
  isMAR,
  isParallel
)

Arguments

P.mat

precipitation matrix

pr.state

probabilities of transitions for a Markov chain with lag p.

isPeriod

vector of logical n x 1 indicating the days concerned by a 3-month period

nLag

order of he Markov chain for the transitions between dry and wet states (=2 by default)

th

threshold above which we consider that a day is wet (e.g. 0.2 mm)

parMargin

parameters of the margins 2 x 3

typeMargin

'EGPD' (Extended GPD) or 'mixExp' (Mixture of Exponentials). 'EGPD' by default

nChainFit

integer, length of the runs used during the fitting procedure. =100000 by default

isMAR

logical value, do we apply a Autoregressive Multivariate Autoregressive model (order 1) =TRUE by default

isParallel

logical: indicate computation in parallel or not (easier for debugging)

Value

list

list of estimates (e.g., M0, dfStudent)

Author(s)

Guillaume Evin


GWEX documentation built on Nov. 8, 2023, 5:06 p.m.