group_model | R Documentation |
This function constructs a transition network analysis (TNA) model for each cluster from a given sequence, wide-format dataframe, or a mixture Markov model.
group_model(x, ...)
## Default S3 method:
group_model(
x,
group,
type = "relative",
scaling = character(0L),
groupwise = FALSE,
cols,
params = list(),
na.rm = TRUE,
...
)
## S3 method for class 'mhmm'
group_model(
x,
type = "relative",
scaling = character(0L),
groupwise = FALSE,
cols,
params = list(),
na.rm = TRUE,
...
)
group_tna(x, ...)
group_ftna(x, ...)
group_ctna(x, ...)
group_atna(x, ...)
x |
An |
... |
Ignored. |
group |
A vector indicating the cluster assignment of each
row of the data / sequence. Must have the same length as the number of
rows/sequences of |
type |
A
|
scaling |
A
|
groupwise |
A |
cols |
An |
params |
A
|
na.rm |
A |
An object of class group_tna
which is a list
containing one
element per cluster. Each element is a tna
object.
Cluster-related functions
communities()
,
mmm_stats()
,
rename_groups()
# Manually specified groups
group <- c(rep("High", 1000), rep("Low", 1000))
model <- group_model(group_regulation, group = group)
# Groups defined by a mixed Markov model
model <- group_model(engagement_mmm)
model <- group_tna(group_regulation, group = gl(2, 1000))
model <- group_ftna(group_regulation, group = gl(2, 1000))
model <- group_ctna(group_regulation, group = gl(2, 1000))
model <- group_atna(group_regulation, group = gl(2, 1000))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.