get_results.latents_transition_enumeration: Tables of a transition-model enumeration

View source: R/lta-compare.R

get_results.latents_transition_enumerationR Documentation

Tables of a transition-model enumeration

Description

The result of enumerate_classes(..., time = ): one transition model per number of profiles and group classes (and covariance structure, when model names several).

Usage

## S3 method for class 'latents_transition_enumeration'
get_results(
  x,
  what = c("candidates", "best"),
  criterion = c("bic", "aic", "bic_individual"),
  ...
)

## S3 method for class 'latents_transition_enumeration'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

## S3 method for class 'latents_transition_enumeration'
print(x, ...)

## S3 method for class 'latents_transition_enumeration'
summary(object, ...)

Arguments

x

A latents_transition_enumeration result.

what

"candidates" (one row per candidate) or "best" (the lowest value of criterion).

criterion

"bic" (penalized by the number of groups), "aic" or "bic_individual".

...

Unused.

row.names, optional

Unused; part of the generic.

object

A latents_transition_enumeration result.

Value

A base data.frame, one row per candidate: n_profiles, n_group_classes, model, log_likelihood, n_parameters, aic, bic, bic_individual, relative profile entropy, converged, boundary, n_best_replicated, warnings and error.

Examples

# The first 50 students keep the example quick
few_students <- subset(course_engagement, student <= 50)
grid <- enumerate_classes(few_students, c("browse", "lectures"),
                          "student", time = "sequence", n_profiles = 2:3,
                          n_group_classes = 1, n_starts = 2, seed = 1)
get_results(grid)
get_results(grid, "best")

latents documentation built on Oct. 16, 2026, 5:09 p.m.