Description Usage Arguments Value Examples
View source: R/markov_transitions.R
Generate a binary series that is autocorrelated using the
Markov method from make_markov_series
1 | make_binary_series(n = 100, mean = 0.5, corr = 0)
|
n |
integer, length of series to generate |
mean |
numeric between 0 and 1, proportion of cases with value 1 |
corr |
numeric between -1 and 1, how correlated should series be? |
A binary series
1 2 | make_binary_series(n=12,mean=0.5,corr=0.9)
make_binary_series(n=100,mean=0.5,corr=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.