segment2subtask: Step 3 of Subtask Analysis: Grouping Segments

Description Usage Arguments Value References See Also

View source: R/subtask.R

Description

segment2subtask clustering action sequence segments according to their action frequency profiles. Each cluster forms a subtask.

Usage

1
2
segment2subtask(action_seqs, seg_seqs, n_subtask, actions,
  verbose = FALSE, ...)

Arguments

action_seqs

a list of action sequences

seg_seqs

a list of segment locations

n_subtask

the desired number of subtasks or a vector of candidate number of subtasks

actions

a set of actions

verbose

logical. If TRUE, training progress is printed.

...

additional arguments passed to kmeans

Value

a list containing

n_subtask

the number of subtasks

subtasks

a vector of subtasks

subtask_seqs

a list of subtask sequences

tot.withinss

a vector of total within cluster sum of squares

relative_cluster_profiles

a n_subtask by length(actions) matrix. Each row gives the action frequency profile of each subtask relative to the overall action frequency profile

References

Wang, Z., Tang, X., Liu, J., and Ying, Z. (2020) Subtask analysis of process data through a predictive model. https://arxiv.org/abs/2009.00717

See Also

action2entropy and segment2subtask for steps 1 and 3 of the subtask analysis procedure; subtask_analysis for the complete procedure.


xytangtang/ProcData documentation built on May 30, 2021, 1:21 a.m.