infer.mat.omega: infer.mat.omega

View source: R/GWexPrec_lib.r

infer.mat.omegaR Documentation

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)

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)

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).

Author(s)

Guillaume Evin


guillaumeevin/GWEX documentation built on Feb. 9, 2024, 3:22 a.m.