lagTransProbaVector: lagTransProbaVector

View source: R/GWexPrec_lib.r

lagTransProbaVectorR Documentation

lagTransProbaVector

Description

Estimate the transition probabilities between wet and dry states, for nlag previous days, for one station

Usage

lagTransProbaVector(vec.prec, isPeriod, th, nlag)

Arguments

vec.prec

vector nx1 of precipitation for one station

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

number of lag days

Value

matrix

matrix nLag^2 x (nLag+1) of transition probability between dry/wet state. The first nLag columns indicate the wet/dry states for the previous nLag days

Author(s)

Guillaume Evin


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