make_markov_series: Create a series of binary variables based on a transition...

Description Usage Arguments Details Value Source Examples

View source: R/markov_transitions.R

Description

Generate a

Usage

1
make_markov_series(n, tm, burnin = NULL, ...)

Arguments

n

an integer representing the length of the series

tm

a Transition Matrix that describes the transition matrix

burnin

integer, number of values to simulate before drawing from the series

...

additional arguments to apss to markovchainSequence

Details

A Transition Matrix is a 2x2 matrix where:

Value

a vector of length n with a random series of 0 and 1 generated from the tm

Source

Examples

1
make_markov_series(10, matrix(c(0.6,0.4,0.9,0.1), nrow=2, byrow=TRUE))

OpenSDP/OpenSDPsynthR documentation built on June 20, 2020, 6:18 a.m.