seq_gen2 {ProcData} | R Documentation |
Markov action sequence generator
Description
seq_gen2
generates action sequences according to a given probability
transition matrix.
Usage
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))
Arguments
n |
An integer. The number of action sequences to be generated. |
Pmat |
An |
events |
A character vector specifying the set of |
start_index |
Index of the action indicating the start of an item in
|
end_index |
Index of the action indicating the end of an item in
|
max_len |
Maximum length of generated sequences. |
include_time |
logical. Indicate if timestamp sequences should be generated. Default is FALSE. |
time_intv_dist |
A list specifying the distribution of the inter-arrival time. |
Details
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.
Value
An object of class "proc"
with time_seqs = NULL
.
See Also
Other sequence generators: seq_gen3
,
seq_gen