getProb | R Documentation |
Retrieve (conditional) probabilities from binary time series
getProb(ts)
ts |
Binary time series vector |
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)
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.