Package: psychnets 0.2.1

Mohammed Saqr

psychnets: Clean-Room Base-R Psychometric Network Estimation

Estimates psychometric network models -- correlation and partial correlation, the EBIC-regularized Gaussian graphical model (graphical lasso), its nonparanormal and unregularized stepwise variants, information-filtering graphs (TMFG and LoGo), relative-importance networks, and the Ising and mixed graphical models -- reimplemented from first principles in base R with no compiled dependencies. Each regularized estimator ships a dependency-free correctness certificate (for the Gaussian graphical model, the graphical-lasso stationarity / KKT residual) so a fitted network is self-verifying: its distance from the unique optimum of its own convex objective is reported directly, rather than trusted only because it matches an external solver. The R counterpart to the 'psychaj' TypeScript library.

Authors:Mohammed Saqr [aut, cre]

psychnets_0.2.1.tar.gz
psychnets_0.2.1.zip(r-4.7)psychnets_0.2.1.zip(r-4.6)psychnets_0.2.1.zip(r-4.5)
psychnets_0.2.1.tgz(r-4.6-any)psychnets_0.2.1.tgz(r-4.5-any)
psychnets_0.2.1.tar.gz(r-4.7-any)psychnets_0.2.1.tar.gz(r-4.6-any)
psychnets_0.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
psychnets/json (API)

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

Bug tracker:https://github.com/mohsaqr/psychnet/issues

Datasets:
  • SRL_Claude - Self-regulated-learning (MSLQ) construct scores simulated by large language models
  • SRL_Gemini - Self-regulated-learning (MSLQ) construct scores simulated by large language models
  • SRL_GPT - Self-regulated-learning (MSLQ) construct scores simulated by large language models
  • SRL_LLaMa - Self-regulated-learning (MSLQ) construct scores simulated by large language models
  • SRL_Mistral - Self-regulated-learning (MSLQ) construct scores simulated by large language models

On CRAN:

Conda:

3.85 score 29 exports 0 dependencies

Last updated from:9662904155. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK261
source / vignettesOK212
linux-release-x86_64OK269
macos-release-arm64OK139
macos-oldrel-arm64OK136
windows-develOK178
windows-releaseOK169
windows-oldrelOK154
wasm-releaseOK145

Exports:certificateconditioncor_autocor_networkdichotomizedifference_testebic_glassoggm_modselectggm_support_kktglasso_kktglm_lasso_kkthuge_networkising_fitising_samplerlmg_certificatelogo_networkmgm_fitnet_bootnet_centralitiesnet_comparenet_crosswalknet_predictnet_stabilitynode_predictabilitypcor_networkpsychnetrelimp_networktmfg_certificatetmfg_network

Dependencies:

Gaussian graphical models
What is a psychological network? | Why regularize? | A worked example | Estimating the network | Centrality | Predictability | Plotting | A note on options | A second example: how the options change the network | Non-normal data | Mathematical foundations | The Gaussian graphical model | The graphical lasso objective | Tuning by the extended BIC | The psychnets implementation | The KKT optimality certificate | The solver engine | Argument reference | Predictability in closed form | The nonparanormal extension | References

Last update: 2026-06-28
Started: 2026-06-28

Gaussian graphical models: an extended tutorial
What a psychological network represents | Why and how we regularize | A worked analysis with SRL_GPT | Assessing accuracy and replicability | Non-normal and ordinal data | Native estimation | The Fortran glasso estimator | Mathematical foundations | Precision matrix and the pairwise Markov property | Partial-correlation identity | The L1-penalized Gaussian log-likelihood objective | EBIC with gamma | References

Last update: 2026-06-28
Started: 2026-06-28

Information-filtering networks: TMFG and LoGo
Plotting

Last update: 2026-06-28
Started: 2026-06-28

Ising networks for binary data
Dichotomising | Fitting the Ising network | Regularised vs unregularised | Plotting

Last update: 2026-06-28
Started: 2026-06-28

Mixed graphical models
Building a mixed data set | The fitted network | Plotting

Last update: 2026-06-28
Started: 2026-06-28

Relative-importance networks
Plotting

Last update: 2026-06-28
Started: 2026-06-28

Stepwise unregularized GGM
Regularized vs unregularized | Predictability | Plotting

Last update: 2026-06-28
Started: 2026-06-28

Readme and manuals

Help Manual

Help pageTopics
Back-compatible field access for a psychnet object$.psychnet
Tidy edge list for a psychnet networkas.data.frame.psychnet
Tidy a network bootstrapas.data.frame.psychnet_bootstrap
Correctness certificate of a fitted networkcertificate
Condition a moderated network at a moderator valuecondition
Automatic correlation matrix (polychoric / polyserial / Pearson)cor_auto
Correlation networkcor_network
Dichotomize numeric columns to 0/1dichotomize
Bootstrapped difference test for edges or centralitiesdifference_test
EBIC-regularized Gaussian graphical model (graphical lasso)ebic_glasso
Stepwise Gaussian graphical model selection (ggmModSelect)ggm_modselect
Constrained Gaussian-MRF (graph-restricted MLE) stationarity residualggm_support_kkt
Graphical-lasso stationarity (KKT) residualglasso_kkt
Stationarity (KKT) residual of an L1-penalized GLM fitglm_lasso_kkt
Nonparanormal graphical model (huge)huge_network
Ising network for binary dataising_fit
Unregularized Ising network for binary dataising_sampler
Relative-importance (LMG / Shapley) certificatelmg_certificate
Local-Global sparse inverse covariance (LoGo)logo_network
Mixed graphical modelmgm_fit
Bootstrap a psychometric networknet_boot
Node centralitynet_centralities
Network Comparison Testnet_compare
Argument crosswalk: psychnet as a substitute for qgraph / IsingFit / mgmnet_crosswalk
Node predictabilitynet_predict
Centrality-stability coefficient (case-dropping subset bootstrap)net_stability
Node predictability as a plotting vectornode_predictability
Partial correlation networkpcor_network
Print a psychnet networkprint.psychnet
Print a network bootstrapprint.psychnet_bootstrap
Print a moderated MGM fitprint.psychnet_moderated
Print a Network Comparison Testprint.psychnet_nct
Print a centrality-stability resultprint.psychnet_stability
Estimate a psychometric networkpsychnet
Relative-importance network (LMG / Shapley)relimp_network
Self-regulated-learning (MSLQ) construct scores simulated by large language modelsSRL SRL_Claude SRL_Gemini SRL_GPT SRL_LLaMa SRL_Mistral
Summarize a psychnet networksummary.psychnet
Structural certificate for a TMFG networktmfg_certificate
Triangulated Maximally Filtered Graph (TMFG)tmfg_network