Skip to content

sparseSEM

4.1

Elastic Net Penalized Maximum Likelihood for Structural Equation Models with Network GPT Framework

0packages depend
6.9Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Anhui HuangFirst published 2014-08-267 releasesCRAN page ↗

Provides elastic net penalized maximum likelihood estimator for structural equation models (SEM). The package implements `lasso` and `elastic net` (l1/l2) penalized SEM and estimates the model parameters with an efficient block coordinate ascent algorithm that maximizes the penalized likelihood of the SEM. Hyperparameters are inferred from cross-validation (CV). A Stability Selection (STS) function is also available to provide accurate causal effect selection. The software achieves high accuracy performance through a `Network Generative Pre-trained Transformer` (Network GPT) Framework with two steps: 1) pre-trains the model to generate a complete (fully connected) graph; and 2) uses the complete graph as the initial state to fit the `elastic net` penalized SEM.

Install

Health

CRAN checks
13OK
Slowest check: 4.9 min · r-devel-linux-x86_64-fedora-gcc
Code health
None
Tests · ratio 0.00
not tracked
Coverage
Yes
Vignettes
Yes
README
1
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

6.9K
CRAN downloads in the past year
Rank #5,791 · ~19/day · ~577/mo
Daily download trend is not available in this view yet.
55830 days
1.8K90 days
6.9K1 year
Compare downloads with other packages →
Also on401 r2u21 autocran89 c2d4u

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (1)
parallel
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
C 5,207 (70%)Rd 927 (12%)R 737 (10%)Vignettes 577 (8%)
Code characteristics
Cyclomatic complexity
8.0 median / 21 max

Test coverage

Line coverage

Expression

Tests / Examples

Functions

29 0 exported

Complexity

11.4 avg / 21 max

Call network

29 nodes / 65 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (1)
Maintainer (1)
Author, Contributor, Maintainer
Authors (1)
Author, Contributor, Maintainer
Contributors (1)
Author, Contributor, Maintainer
Package Timeline

7 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 4.1Latest
    2024-10-27 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 4.0
    2023-08-09 · diff ↗
  • 3.8-2
    2023-06-11 · diff ↗
  • 3.8-1
    2023-05-04 · diff ↗
  • 3.8
    2023-04-21 · diff ↗
  • unarchivedReturned to CRAN
    2023-04-21
  • R
    R 4.3.0 released · 2023-04-21
  • archivedRemoved from CRAN
    2022-05-07
    installation issues were not corrected in time
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
Show 6 earlier events
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 2.5
    2014-09-04 · diff ↗
  • 2.3
    2014-08-26
  • R
    R 3.1.0 released · 2014-04-10

Package metadata

First published
2014-08-26
Total releases
7 / 12 yrs
License
GPL
Minimum R
≥ 3.5.0
Bundled data
860 KB / 5 files
Download size
4.5 MB
Installed size
not tracked yet
With dependencies
not tracked yet