Stata gsem Generalized Structural Equation Model Estimation Command Manual

Reference manual for Stata's gsem command, which fits generalized structural equation models, covering syntax, options, and stored results.


Stata gsem Generalized Structural Equation Model Estimation Command Manual - cover page
Brand
Stata
Category
Application program
Document type
User Manual
Language
English
Pages
5
File format
PDF
File size
147 KB
Published
16 November, 2026
Updated
16 November, 2026
MD5 checksum
9DC63E35D9748903660BF552D68BE853

About this manual

This document is the reference manual entry for gsem, Stata's command for fitting generalized structural equation models (SEMs). It documents the command's syntax, the option groups for model description, groups, latent classes, estimation, reporting, and syntax interpretation, and lists the results stored in e() and r() after estimation.

The remarks section explains how gsem differs from Stata's sem command: gsem allows generalized linear response functions, multilevel models, categorical latent variables, and factor-variable notation, while omitting some features of sem such as standardized coefficients and summary statistic datasets. Advanced topics covered include default normalization constraints, default covariance assumptions, and how to solve convergence problems.

What's inside

  • Description
  • Syntax
  • Options
  • Remarks and examples
  • Stored results
  • References
  • Also see
  • Default normalization constraints
  • Default covariance assumptions
  • How to solve convergence problems

Frequently asked questions

What does the gsem command do?

gsem fits generalized structural equation models (generalized SEMs), and it is the command used when you use the Builder in gsem mode.

How do I open gsem from the Stata menu?

Go to Statistics > SEM (structural equation modeling) > Model building and estimation.

What weights are allowed with gsem?

fweights, iweights, and pweights are allowed; weights are not allowed with the bootstrap prefix, and vce() and weights are not allowed with the svy prefix.

What can gsem do that sem cannot?

gsem allows generalized linear response functions, multilevel models, categorical latent variables, and Stata's factor-variable notation, none of which sem allows.

Download PDF (147 KB)

More Stata Manuals


View all Stata manuals →