Learn R Programming

GWEX (version 1.1.3)

infer.mat.omega: infer.mat.omega

Description

find omega correlation leading to estimates cor between occurrences

Usage

infer.mat.omega(P.mat, isPeriod, th, nLag, pr.state, nChainFit, isParallel)

Value

A list with different objects

  • Qtrans.mat: matrix nStation x n.comb of transition probabilites

  • mat.comb: matrix of possible combination n.comb x nLag

  • mat.omega: The spatial correlation matrix of occurrences \(\Omega\) (see Evin et al., 2018).

Arguments

P.mat

matrix of precipitation n x p

isPeriod

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

th

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

nLag

order of the Markov chain

pr.state

output of function lagTransProbaMatrix

nChainFit

length of the simulated chains used during the fitting

isParallel

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

Author

Guillaume Evin