seq_gen2
generates action sequences according to a given probability
transition matrix.
seq_gen2(n, Pmat = NULL, events = letters, start_index = 1,
end_index = length(events), max_len = 200, include_time = FALSE,
time_intv_dist = list("exp", 1), seed = 12345)
An integer. The number of action sequences to be generated.
An N
by N
probability transition matrix.
A character vector specifying the set of N
possible
actions. Default is letters
.
Index of the action indicating the start of an item in
events
.
Index of the action indicating the end of an item in
events
.
Maximum length of generated sequences.
logical. Indicate if timestamp sequences should be generated. Default is FALSE.
A list specifying the distribution of the inter-arrival time.
random generator seed.
An object of class "proc"
with time_seqs = NULL
.
This function generates n
action sequences according Pmat
. The
set of possible actions is events
. All generated sequences start with
events[start_index]
and end with events[end_index]
. If
Pmat
is not supplied, actions is uniformly drawn from
events[-start_index]
until events[end_index]
appears.