Package: lessSEM 1.5.5

lessSEM: Non-Smooth Regularization for Structural Equation Models

Provides regularized structural equation modeling (regularized SEM) with non-smooth penalty functions (e.g., lasso) building on 'lavaan'. The package is heavily inspired by the ['regsem'](<https://github.com/Rjacobucci/regsem>) and ['lslx'](<https://github.com/psyphh/lslx>) packages.

Authors:Jannik H. Orzek [aut, cre, cph]

lessSEM_1.5.5.tar.gz
lessSEM_1.5.5.zip(r-4.5)lessSEM_1.5.5.zip(r-4.4)lessSEM_1.5.5.zip(r-4.3)
lessSEM_1.5.5.tgz(r-4.4-x86_64)lessSEM_1.5.5.tgz(r-4.4-arm64)lessSEM_1.5.5.tgz(r-4.3-x86_64)lessSEM_1.5.5.tgz(r-4.3-arm64)
lessSEM_1.5.5.tar.gz(r-4.5-noble)lessSEM_1.5.5.tar.gz(r-4.4-noble)
lessSEM_1.5.5.tgz(r-4.4-emscripten)lessSEM_1.5.5.tgz(r-4.3-emscripten)
lessSEM.pdf |lessSEM.html
lessSEM/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/jhorzek/lesssem/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

lassopsychometricsregularizationregularized-structural-equation-modelsemstructural-equation-modeling

7.89 score 7 stars 221 scripts 190 downloads 77 exports 45 dependencies

Last updated 9 months agofrom:7a58fa3123. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 04 2024
R-4.5-win-x86_64NOTENov 04 2024
R-4.5-linux-x86_64NOTENov 04 2024
R-4.4-win-x86_64NOTENov 04 2024
R-4.4-mac-x86_64NOTENov 04 2024
R-4.4-mac-aarch64NOTENov 04 2024
R-4.3-win-x86_64NOTENov 04 2024
R-4.3-mac-x86_64NOTENov 04 2024
R-4.3-mac-aarch64NOTENov 04 2024

Exports:adaptiveLassoaddCappedL1addElasticNetaddLassoaddLspaddMcpaddScadAICbfgsBICcappedL1coefcontrolBFGScontrolGlmnetcontrolIstacovariancescreateSubsetscurveLambdacvAdaptiveLassocvCappedL1cvElasticNetcvLassocvLspcvMcpcvRidgecvRidgeBfgscvScadcvScalercvSmoothAdaptiveLassocvSmoothElasticNetcvSmoothLassoelasticNetestimatesfitfitIndicesgetLavaanParametersgetTuningParameterConfigurationgpAdaptiveLassogpAdaptiveLassoCppgpCappedL1gpCappedL1CppgpElasticNetgpElasticNetCppgpLassogpLassoCppgpLspgpLspCppgpMcpgpMcpCppgpRidgegpRidgeCppgpScadgpScadCpplassolavaan2lslxLabelslessSEM2LavaanloadingslspmakePtrsmcpmixedPenaltymodifyModelnewTauplotregressionsregsem2LavaanParametersridgeridgeBfgsscadshowsimulateExampleDatasmoothAdaptiveLassosmoothElasticNetsmoothLassostabilitySelectionsummaryvariances

Dependencies:clicolorspacecpp11dplyrfansifarvergenericsggplot2gluegtableisobandlabelinglatticelavaanlifecyclemagrittrMASSMatrixmgcvmnormtmunsellmvtnormnlmenumDerivpbivnormpillarpkgconfigpurrrquadprogR6RColorBrewerRcppRcppArmadilloRcppParallelrlangscalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Definition-Variables-and-Multi-Group-SEM

Rendered fromDefinition-Variables-and-Multi-Group-SEM.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2024-01-09
Started: 2022-12-07

General-Purpose-Optimization

Rendered fromGeneral-Purpose-Optimization.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2024-01-09
Started: 2022-07-25

lessSEM

Rendered fromlessSEM.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2024-01-09
Started: 2022-07-19

log-likelihood-gradients

Rendered fromlog-likelihood-gradients.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2023-03-16
Started: 2022-08-26

Estimator-Settings

Rendered fromEstimator-Settings.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2023-06-24
Started: 2023-06-24

Mixed Penalties

Rendered fromMixed-Penalties.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2024-01-09
Started: 2023-01-27

Parameter-transformations

Rendered fromParameter-transformations.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2024-01-09
Started: 2022-08-22

SCAD-and-MCP

Rendered fromSCAD-and-MCP.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2023-03-16
Started: 2022-07-11

The-optimizer-interface

Rendered fromThe-optimizer-interface.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2023-06-24
Started: 2022-07-15

The-Structural-Equation-Model

Rendered fromThe-Structural-Equation-Model.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2024-01-09
Started: 2022-08-12

Readme and manuals

Help Manual

Help pageTopics
.adaptBreakingForWls.adaptBreakingForWls
.checkPenalties.checkPenalties
.labelLavaanParameters.labelLavaanParameters
.updateLavaan.updateLavaan
.useElasticNet.useElasticNet
adaptiveLassoadaptiveLasso
addCappedL1addCappedL1
addElasticNetaddElasticNet
addLassoaddLasso
addLspaddLsp
addMcpaddMcp
addScadaddScad
AICAIC,gpRegularized-method
AICAIC,Rcpp_mgSEM-method
AICAIC,Rcpp_SEMCpp-method
AICAIC,regularizedSEM-method
AICAIC,regularizedSEMMixedPenalty-method
bfgsbfgs
smoothly approximated elastic netbfgsEnet
smoothly approximated elastic netbfgsEnetMgSEM
smoothly approximated elastic netbfgsEnetSEM
BICBIC,gpRegularized-method
BICBIC,Rcpp_mgSEM-method
BICBIC,Rcpp_SEMCpp-method
BICBIC,regularizedSEM-method
BICBIC,regularizedSEMMixedPenalty-method
callFitFunctioncallFitFunction
cappedL1cappedL1
coefcoef,cvRegularizedSEM-method
coefcoef,gpRegularized-method
coefcoef,Rcpp_mgSEM-method
coefcoef,Rcpp_SEMCpp-method
coefcoef,regularizedSEM-method
coefcoef,regularizedSEMMixedPenalty-method
controlBFGScontrolBFGS
controlGlmnetcontrolGlmnet
controlIstacontrolIsta
covariancescovariances
createSubsetscreateSubsets
curveLambdacurveLambda
cvAdaptiveLassocvAdaptiveLasso
cvCappedL1cvCappedL1
cvElasticNetcvElasticNet
cvLassocvLasso
cvLspcvLsp
cvMcpcvMcp
Class for cross-validated regularized SEMcvRegularizedSEM-class
cvRidgecvRidge
cvRidgeBfgscvRidgeBfgs
cvScadcvScad
cvScalercvScaler
cvSmoothAdaptiveLassocvSmoothAdaptiveLasso
cvSmoothElasticNetcvSmoothElasticNet
cvSmoothLassocvSmoothLasso
elasticNetelasticNet
S4 method to exract the estimates of an objectestimates
estimatesestimates,cvRegularizedSEM-method
estimatesestimates,regularizedSEM-method
estimatesestimates,regularizedSEMMixedPenalty-method
fitfit
S4 method to compute fit indices (e.g., AIC, BIC, ...)fitIndices
fitIndicesfitIndices,cvRegularizedSEM-method
fitIndicesfitIndices,regularizedSEM-method
fitIndicesfitIndices,regularizedSEMMixedPenalty-method
getLavaanParametersgetLavaanParameters
getTuningParameterConfigurationgetTuningParameterConfiguration
CappedL1 optimization with glmnet optimizerglmnetCappedL1MgSEM
CappedL1 optimization with glmnet optimizerglmnetCappedL1SEM
elastic net optimization with glmnet optimizerglmnetEnetGeneralPurpose
elastic net optimization with glmnet optimizerglmnetEnetGeneralPurposeCpp
elastic net optimization with glmnet optimizerglmnetEnetMgSEM
elastic net optimization with glmnet optimizerglmnetEnetSEM
lsp optimization with glmnet optimizerglmnetLspMgSEM
lsp optimization with glmnet optimizerglmnetLspSEM
mcp optimization with glmnet optimizerglmnetMcpMgSEM
mcp optimization with glmnet optimizerglmnetMcpSEM
mixed optimization with glmnet optimizerglmnetMixedMgSEM
mixed optimization with glmnet optimizerglmnetMixedPenaltyGeneralPurpose
mixed optimization with glmnet optimizerglmnetMixedPenaltyGeneralPurposeCpp
mixed optimization with glmnet optimizerglmnetMixedSEM
scad optimization with glmnet optimizerglmnetScadMgSEM
scad optimization with glmnet optimizerglmnetScadSEM
gpAdaptiveLassogpAdaptiveLasso
gpAdaptiveLassoCppgpAdaptiveLassoCpp
gpCappedL1gpCappedL1
gpCappedL1CppgpCappedL1Cpp
gpElasticNetgpElasticNet
gpElasticNetCppgpElasticNetCpp
gpLassogpLasso
gpLassoCppgpLassoCpp
gpLspgpLsp
gpLspCppgpLspCpp
gpMcpgpMcp
gpMcpCppgpMcpCpp
Class for regularized model using general purpose optimization interfacegpRegularized-class
gpRidgegpRidge
gpRidgeCppgpRidgeCpp
gpScadgpScad
gpScadCppgpScadCpp
cappedL1 optimization with istaistaCappedL1mgSEM
cappedL1 optimization with istaistaCappedL1SEM
elastic net optimization with istaistaEnetGeneralPurpose
elastic net optimization with istaistaEnetGeneralPurposeCpp
elastic net optimization with ista optimizeristaEnetMgSEM
elastic net optimization with ista optimizeristaEnetSEM
lsp optimization with istaistaLSPMgSEM
lsp optimization with istaistaLSPSEM
mcp optimization with istaistaMcpMgSEM
mcp optimization with istaistaMcpSEM
mixed penalty optimization with istaistaMixedPenaltyGeneralPurpose
mixed penalty optimization with istaistaMixedPenaltyGeneralPurposeCpp
mixed penalty optimization with istaistaMixedPenaltymgSEM
mixed penalty optimization with istaistaMixedPenaltySEM
scad optimization with istaistaScadMgSEM
scad optimization with istaistaScadSEM
lassolasso
lavaan2lslxLabelslavaan2lslxLabels
lessSEM2LavaanlessSEM2Lavaan
Class for the coefficients estimated by lessSEM.lessSEMCoef-class
loadingsloadings
logicalMatchlogicalMatch
logLiklogLik,Rcpp_mgSEM-method
logLiklogLik,Rcpp_SEMCpp-method
Class for log-likelihood of regularized SEM. Note: we define a custom logLik - Function because the generic one is using df = number of parameters which might be confusing.logLikelihood-class
lsplsp
makePtrsmakePtrs
mcpmcp
mcpPenalty_CmcpPenalty_C
mgSEM classmgSEM
mixedPenaltymixedPenalty
modifyModelmodifyModel
newTaunewTau
plots the cross-validation fitsplot,cvRegularizedSEM,missing-method
plots the regularized and unregularized parameters for all levels of lambdaplot,gpRegularized,missing-method
plots the regularized and unregularized parameters for all levels of lambdaplot,regularizedSEM,missing-method
plots the regularized and unregularized parameters for all levels of the tuning parametersplot,stabSel,missing-method
regressionsregressions
regsem2LavaanParametersregsem2LavaanParameters
Class for regularized SEMregularizedSEM-class
Class for regularized SEMregularizedSEMMixedPenalty-class
ridgeridge
ridgeBfgsridgeBfgs
scadscad
scadPenalty_CscadPenalty_C
SEMCpp classSEMCpp
Show method for objects of class 'cvRegularizedSEM'.show,cvRegularizedSEM-method
showshow,gpRegularized-method
showshow,lessSEMCoef-method
showshow,logLikelihood-method
showshow,Rcpp_mgSEM-method
showshow,Rcpp_SEMCpp-method
showshow,regularizedSEM-method
showshow,regularizedSEMMixedPenalty-method
showshow,stabSel-method
simulateExampleDatasimulateExampleData
smoothAdaptiveLassosmoothAdaptiveLasso
smoothElasticNetsmoothElasticNet
smoothLassosmoothLasso
stabilitySelectionstabilitySelection
Class for stability selectionstabSel-class
summary method for objects of class 'cvRegularizedSEM'.summary,cvRegularizedSEM-method
summarysummary,gpRegularized-method
summarysummary,regularizedSEM-method
summarysummary,regularizedSEMMixedPenalty-method
variancesvariances