get_results.multilpa_lta: Tables of a latent transition fit with occasion- or...

View source: R/lta-methods.R

get_results.multilpa_ltaR Documentation

Tables of a latent transition fit with occasion- or covariate-dependent transitions or occasion-specific measurement

Description

The result of lta() with transitions = "occasion", transition_covariates, initial_covariates or measurement = "occasion".

Usage

## S3 method for class 'multilpa_lta'
get_results(
  x,
  what = "transitions",
  level = 0.95,
  vcov_type = c("observed", "robust", "opg"),
  ...
)

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

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

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

## S3 method for class 'multilpa_lta'
coef(object, ...)

## S3 method for class 'multilpa_lta'
vcov(object, type = c("observed", "robust", "opg"), ...)

## S3 method for class 'multilpa_lta'
logLik(object, ...)

## S3 method for class 'multilpa_lta'
nobs(object, ...)

Arguments

x

A multilpa_lta fit.

what

Which table; "all" for a named list of every table.

level

Confidence level of the coefficient intervals.

vcov_type

"observed", "robust" (CR0 over groups) or "opg".

...

Unused.

row.names, optional

Unused; part of the generic.

object

A multilpa_lta fit.

type

Covariance type, as vcov_type.

Value

A base data.frame, or a named list of them for what = "all".

Tables

transitions

Model-implied transition probabilities, one row per group class, origin from and destination to; with occasion-varying or covariate-dependent transitions, one set per destination occasion, averaged over the groups observed there.

transition_coefficients

One row per group class, move from -> to and design term: the log odds of that move rather than staying in from, its standard error, Wald statistic, p-value, interval and odds_ratio. Terms are (Intercept) or occasion_t and each covariate column.

second_order_transitions, second_order_coefficients

With order = 2: the probability of moving to given the profiles at the two previous occasions (previous, from), averaged over the groups observed from the third occasion on, and its logit coefficients (reference: staying in from). The transitions tables then describe the first move only.

initial, initial_coefficients

The initial distribution (averaged over groups) and its logit coefficients, reference: the last profile.

profiles

Means and variances per profile and indicator, per occasion when measurement is occasion-specific.

group_classes, assignments, fit, starts

As for other fits.

Examples

# Does the grade in the previous course shift the chance of switching
# engagement profile? `previous_grade` changes from course to course.
fit <- lta(course_engagement, c("browse", "lectures"), "student",
           n_profiles = 2, time = "sequence",
           transition_covariates = "previous_grade", n_starts = 2, seed = 1)
get_results(fit, "transition_coefficients")
get_results(fit, "transitions")

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