Package: sem 3.1-16

Zhenghua Nie

sem: Structural Equation Models

Functions for fitting general linear structural equation models (with observed and latent variables) using the RAM approach, and for fitting structural equations in observed-variable models by two-stage least squares.

Authors:John Fox [aut], Zhenghua Nie [aut, cre], Jarrett Byrnes [aut], Michael Culbertson [ctb], Saikat DebRoy [ctb], Michael Friendly [ctb], Benjamin Goodrich [ctb], Richard H. Jones [ctb], Adam Kramer [ctb], Georges Monette [ctb], Frederick Novomestky [ctb], R-Core [ctb]

sem_3.1-16.tar.gz
sem_3.1-16.tar.gz(r-4.5-noble)sem_3.1-16.tar.gz(r-4.4-noble)
sem_3.1-16.tgz(r-4.4-emscripten)sem_3.1-16.tgz(r-4.3-emscripten)
sem.pdf |sem.html
sem/json (API)
NEWS

# Install 'sem' in R:
install.packages('sem', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • Bollen - Bollen's Data on Industrialization and Political Democracy
  • CNES - Variables from the 1997 Canadian National Election Study
  • HS.data - Holizinger and Swineford's Data
  • Klein - Klein's Data on the U. S. Economy
  • Kmenta - Partly Artificial Data on the U. S. Economy
  • Tests - Six Mental Tests

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

7.06 score 40 packages 312 scripts 31k downloads 32 mentions 52 exports 14 dependencies

Last updated 2 months agofrom:0febabeb5f. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 28 2024
R-4.5-linux-x86_64OKOct 28 2024

Exports:AICcboot.sembootSemCAICcfaclassifyVariablescombineModelscov2rawfscoresmathmiSemmod.indicesmodIndicesmsemObjectiveGLSmsemObjectiveMLmsemObjectiveML2msemOptimizerNlmmultigroupModelnormalized.residualsnormalizedResidualsobjectiveFIMLobjectiveFIML2objectiveGLSobjectiveGLS2objectiveMLobjectiveML2optimizerMsemoptimizerNlmoptimizerNlminboptimizerOptimoptimizerSempath.diagrampathDiagramramraw.momentsrawMomentsread.momentsreadMomentsremoveRedundantPathssemspecify.modelspecifyEquationsspecifyModelstandardized.coefficientsstandardized.residualsstandardizedCoefficientsstandardizedResidualsstartvaluesstartvalues2std.coefstdCoeftsls

Dependencies:abindarmbootcodalatticelme4MASSMatrixmiminqanlmenloptrRcppRcppEigen

Readme and manuals

Help Manual

Help pageTopics
Bollen's Data on Industrialization and Political DemocracyBollen
Bootstrap a Structural Equation ModelbootSem bootSem.msem bootSem.sem print.bootsem print.summary.bootsem summary.bootsem
Variables from the 1997 Canadian National Election StudyCNES
Total, Direct, and Indirect Effects for Structural Equation Modelseffects.msem effects.sem print.semeffects print.semeffectsList
Factor Scores for Latent Variablesfscores fscores.msem fscores.sem
Holizinger and Swineford's DataHS.data
Additional Information CriteriaAICc CAIC information.criteria
Klein's Data on the U. S. EconomyKlein
Partly Artificial Data on the U. S. EconomyKmenta
Estimate a Structural Equation Model By Multiple ImputationmiSem miSem.semmod miSem.semmodList print.miSem summary.miSem
Methods for sem Objects Fit Using the 'objectiveML', 'objectiveGLS', 'objectiveFIML', 'msemObjectiveML', and 'msemObjectiveGLS' Objective FunctionsAIC.msemObjectiveML AIC.objectiveFIML AIC.objectiveML AICc.msemObjectiveML AICc.objectiveFIML AICc.objectiveML anova.msemObjectiveML anova.objectiveFIML anova.objectiveML BIC.msemObjectiveML BIC.objectiveFIML BIC.objectiveML CAIC.objectiveFIML CAIC.objectiveML deviance.msemObjectiveML deviance.objectiveFIML deviance.objectiveML GLS.methods logLik.msemObjectiveML logLik.objectiveFIML logLik.objectiveML ML.methods print.msemObjectiveGLS print.msemObjectiveML print.objectiveFIML print.objectiveGLS print.objectiveML print.summary.objectiveML summary.msemObjectiveGLS summary.msemObjectiveML summary.objectiveFIML summary.objectiveGLS summary.objectiveML
Modification Indices for Structural Equation ModelsmodIndices modIndices.msemObjectiveML modIndices.objectiveML print.modIndices print.msemModIndices summary.modIndices summary.msemModIndices
sem Objective-Function BuildersmsemObjectiveGLS msemObjectiveML msemObjectiveML2 objective.functions objectiveFIML objectiveFIML2 objectiveGLS objectiveGLS2 objectiveML objectiveML2
sem OptimizersmsemOptimizerNlm optimizerMsem optimizerNlm optimizerNlminb optimizerOptim optimizers optimizerSem
Draw Path Diagrammath pathDiagram pathDiagram.sem pathDiagram.semmod
RAM Matrix for a Structural-Equation Modelram
Compute Raw Moments Matrixcov2raw print.rawmoments rawMoments rawMoments.default rawMoments.formula
Input a Covariance, Correlation, or Raw Moment MatrixreadMoments
Residual Covariances for a Structural Equation ModelnormalizedResiduals normalizedResiduals.msemObjectiveML normalizedResiduals.objectiveGLS normalizedResiduals.objectiveML residuals.msem residuals.sem standardizedResiduals standardizedResiduals.msem standardizedResiduals.sem
General Structural Equation Modelscoef.msem coef.sem df.residual.msem df.residual.sem sem sem.default sem.msemmod sem.semmod sem.semmodList startvalues startvalues2 vcov.msem vcov.sem
Deprecated Functions in the sem Packageboot.sem mod.indices normalized.residuals path.diagram raw.moments read.moments sem-deprecated specify.model standardized.coefficients standardized.residuals std.coef
Specify a Structural Equation Modelcfa classifyVariables combineModels combineModels.semmod edit.semmod multigroupModel print.semmod print.semmodList removeRedundantPaths specifyEquations specifyModel update.semmod
Standardized Coefficients for Structural Equation ModelsstandardizedCoefficients standardizedCoefficients.msem standardizedCoefficients.sem stdCoef
Six Mental TestsTests
Two-Stage Least Squaresanova.tsls coef.tsls fitted.tsls print.summary.tsls print.tsls residuals.tsls summary.tsls tsls tsls.default tsls.formula vcov.tsls