Learn R Programming

GWEX (version 1.1.3)

simPrecipOcc: simPrecipOcc

Description

find matrix of correlations leading to estimates cor between intensities

Usage

simPrecipOcc(nLag, n, pr)

Value

a vector Xt of length n with values 0/1 corr. to dry/wet states

Arguments

nLag

order of the Markov chain

n

integer indicating the length of simulated chains

pr

vector of probabilies corr. to the conditional transition probabilities

Author

Guillaume Evin