getProb {ConNEcT} | R Documentation |
Retrieve (conditional) probabilities from binary time series
Description
Retrieve (conditional) probabilities from binary time series
Usage
getProb(ts)
Arguments
ts |
Binary time series vector |
Value
List of three elements
p1
the prevalence p(X(t)=1) and
p1|1
and p1|0
the two auto-conditional probabilities p(X(t)=1|X(t-1)=1) & p(X(t)=1|X(t-1)=0)
Examples
getProb(c(1,0,1,0,1,0,1,1,1,1,0,0,0,0,1,0,1,1,0,0,0,0,0,0,0,0))
[Package ConNEcT version 0.7.27 Index]