Description Usage Arguments Details Value See Also
View source: R/seq_generator.R
seq_gen2
generates action sequences according to a given probability
transition matrix.
1 2 3 |
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. |
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.
An object of class "proc"
with time_seqs = NULL
.
Other sequence generators: seq_gen3
,
seq_gen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.