summary.tseLCA_structural: Summarize a fitted tseLCA model

summary.tseLCA_structuralR Documentation

Summarize a fitted tseLCA model

Description

print() of a fitted model is brief: the header, fit statistics, and the estimates with their standard errors. summary() collects fit statistics and the full coefficient tables (with z values and p-values); printing the result formats the tables with stats::printCoefmat(). The coefficient table (columns Estimate, ⁠Std. Error⁠, ⁠z value⁠, ⁠Pr(>|z|)⁠) can be extracted with coef(summary(fit)).

Usage

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

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

## S3 method for class 'summary.tseLCA_structural'
print(
  x,
  digits = max(3L, getOption("digits") - 3L),
  signif.stars = getOption("show.signif.stars"),
  ...
)

## S3 method for class 'tseLCA_structural'
print(
  x,
  digits = max(3L, getOption("digits") - 3L),
  signif.stars = getOption("show.signif.stars"),
  ...
)

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

## S3 method for class 'summary.tseLCA_measurement'
print(x, digits = max(3L, getOption("digits") - 3L), ...)

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

Arguments

object

A fitted tseLCA object.

...

Further arguments passed to stats::printCoefmat().

x

A summary.tseLCA_structural or summary.tseLCA_measurement object, or a fitted tseLCA object (for print).

digits

Number of significant digits to print.

signif.stars

Logical; print significance stars?

Value

summary() returns an object of class "summary.tseLCA_structural" or "summary.tseLCA_measurement". Print methods return their argument invisibly.

Examples

d   <- generate_data(200, "high", "covariate", seed = 1)
fit <- three_step(d, paste0("Y", 1:6), n_classes = 3,
                  Zp.names = "Zp", use.simple.cov = TRUE)
summary(fit)
printCoefmat(coef(summary(fit)))

tseLCA documentation built on Nov. 11, 2026, 9:07 a.m.