Package: psychnets 0.5.2

Mohammed Saqr

psychnets: Tidy Clean-Room Psychological Network Modeling

Provides clean-room implementations for estimating psychometric network models, including correlation and partial-correlation networks, Gaussian graphical models with extended Bayesian information criterion (EBIC) regularization, nonparanormal and stepwise selection variants, information-filtering networks (the triangulated maximally filtered graph and the local-global inverse covariance), relative-importance networks, and Ising and mixed graphical models <doi:10.3758/s13428-017-0862-1> <doi:10.1007/978-3-031-54464-4_19>. All methods are implemented from first principles in base R without compiled dependencies and return consistent, tidy outputs. Functions are designed to be transparent and report optimization diagnostics where applicable. For Gaussian graphical models, the graphical lasso stationarity (Karush-Kuhn-Tucker) residual quantifies the deviation of the estimated solution from the optimum of the corresponding convex optimization problem.

Authors:Mohammed Saqr [aut, cre, cph], Sonsoles López-Pernas [aut]

psychnets_0.5.2.tar.gz
psychnets_0.5.2.zip(r-4.7-any)psychnets_0.5.2.zip(r-4.6-any)psychnets_0.5.2.zip(r-4.5-any)
psychnets_0.5.2.tgz(r-4.6-any)psychnets_0.5.2.tgz(r-4.5-any)
psychnets_0.5.2.tar.gz(r-4.7-any)psychnets_0.5.2.tar.gz(r-4.6-any)
psychnets_0.5.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
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/psychnets/issues

Pkgdown/docs site:https://pak.dynasite.org

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:

5.92 score 1 stars 1 packages 297 downloads 38 exports 0 dependencies

Last updated from:8743855bef. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK200
source / vignettesOK261
linux-releaseOK194
macos-releaseOK158
macos-oldrelOK107
windows-develOK119
windows-releaseOK120
windows-oldrelOK113
wasm-releaseOK142

Exports:certificateconditioncor_autocor_networkdichotomizedifference_testebic_glassoevent_frequenciesggm_modselectggm_support_kktglasso_kktglm_lasso_kkthuge_networkising_fitising_samplerlmg_certificatelogo_networkmgm_fitnet_aggregatenet_bootnet_bridgenet_casedrop_reliabilitynet_centralitiesnet_clusteringnet_comparenet_crosswalknet_edge_betweennessnet_predictnet_smallworldnet_split_reliabilitynet_stabilitynode_predictabilitypcor_networkpsychnetredundancyrelimp_networktmfg_certificatetmfg_network

Dependencies:

Visualizing networks with cograph
Drawing a fitted network | The data and the fit | The default graph | Layouts | Nodes and labels | Edges | Bootstrap diagnostics | Themes | Group networks | Export | The splot arguments at a glance

Last update: 2026-08-24
Started: 2026-07-05

Gaussian graphical models: estimation and interpretation
What a Gaussian graphical model is | The data | Fitting the network with psychnet() | Inspecting edges with summary() | Checking numerical optimality with certificate() | Describing node position with net_centralities() | Quantifying node predictability with net_predict() | Visualizing the fitted network with cograph::splot() | Sensitivity to the correlation estimator | Applying a substantive edge threshold | A nonparanormal sensitivity model | Reporting the analysis | Why the model removes weak connections | Mathematical foundations | Precision matrix and conditional independence | Penalized likelihood | EBIC model selection | KKT optimality conditions | Predictability from the precision matrix

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

Ising networks for binary data
What an Ising network is | The data | Fitting the network with psychnet() | Inspecting interactions with summary() | Checking numerical optimality with certificate() | Describing node position with net_centralities() | Evaluating binary predictability with net_predict() | Comparing an unregularized Ising estimator | Visualizing the network with cograph::splot() | Reporting the analysis | How the Ising network is estimated | Mathematical foundations

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

Regulation networks from Dynalytics event data
Using the Dynalytics event-data grammar | What a network from event data represents | The event log | Estimating one actor-level network with psychnet() | Inspecting actor-level edges with summary() | Checking numerical optimality with certificate() | Visualizing the actor-level network | Estimating one network per achievement level | Estimating a person-centered session network | Keeping the within- and between-actor networks | Reporting the analysis | How event counts and levels are constructed

Last update: 2026-07-12
Started: 2026-07-05

Stepwise Gaussian graphical model selection
What stepwise model selection does | The data | Fitting the network with psychnet() | Inspecting the selected edges with summary() | Checking the fitted solution with certificate() | Comparing the selected model with the graphical lasso | Describing node position with net_centralities() | Quantifying node predictability with net_predict() | Visualizing the network with cograph::splot() | Sensitivity to rank correlations | Reporting the analysis | How stepwise selection works | Mathematical foundations | Gaussian graphical model | Information criterion | Constrained maximum-likelihood certificate | Predictability

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

Information-filtering networks with TMFG and LoGo
What an information-filtering network is | The data | Building the correlation backbone with psychnet() | Inspecting the TMFG edges with summary() | Estimating conditional associations with LoGo | Checking the TMFG structure with certificate() | Checking the LoGo solution with certificate() | Describing node position with net_centralities() | Quantifying node predictability with net_predict() | Visualizing the conditional network with cograph::splot() | Sensitivity to rank correlations | Reporting the analysis | How information filtering works | Mathematical foundations | TMFG edge count | LoGo precision matrix | Numerical certificate | Predictability

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

Mixed graphical models
What a mixed graphical model is | The data | Fitting the network with psychnet() | Inspecting mixed edges with summary() | Checking numerical optimality with certificate() | Describing node position with net_centralities() | Evaluating predictability with net_predict() | Sensitivity to the edge-combination rule | Visualizing the network with cograph::splot() | Reporting the analysis | How the mixed network is estimated | Mathematical foundations

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

Relative-importance networks
What a relative-importance network is | The data | Fitting the network with psychnet() | Inspecting directed contributions with summary() | Checking the decomposition with certificate() | Reading incoming explanation with net_predict() | Reading outgoing contribution with net_centralities() | Visualizing direction with cograph::splot() | Sensitivity to rank correlations | Reporting the analysis | How relative importance is computed | Mathematical foundations

Last update: 2026-07-12
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
Action frequencies from an event logevent_frequencies
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
Aggregate a network's communities into super-nodesnet_aggregate
Bootstrap a psychometric networknet_boot
Bridge centralitynet_bridge
Edge-weight stability coefficient (case-dropping subset bootstrap)net_casedrop_reliability
Node centralitynet_centralities
Weighted clustering coefficientsnet_clustering
Network Comparison Testnet_compare
Argument crosswalk: psychnet as a substitute for qgraph / IsingFit / mgmnet_crosswalk
Edge betweenness centralitynet_edge_betweenness
Node predictabilitynet_predict
Small-world indexnet_smallworld
Split-half reliability of the network edge structurenet_split_reliability
Centrality-stability coefficient (case-dropping subset bootstrap)net_stability
Node predictability as a plotting vectornode_predictability
Partial correlation networkpcor_network
Plot a psychnet networkplot.psychnet
Plot a network bootstrapplot.psychnet_bootstrap
Plot bridge centralityplot.psychnet_bridge
Plot edge-weight case-dropping stabilityplot.psychnet_casedrop
Plot node centralitiesplot.psychnet_centrality
Plot a bootstrapped difference testplot.psychnet_difference
Plot a Network Comparison Testplot.psychnet_nct
Plot split-half reliabilityplot.psychnet_reliability
Plot centrality stability (case-dropping)plot.psychnet_stability
Print a psychnet networkprint.psychnet
Print a network bootstrapprint.psychnet_bootstrap
Print an edge-weight stability resultprint.psychnet_casedrop
Per-group psychometric networksas.data.frame.psychnet_group print.psychnet_group psychnet_group summary.psychnet_group
Print a moderated MGM fitprint.psychnet_moderated
Within / between event-data networksas.data.frame.psychnet_multilevel print.psychnet_multilevel
Print a Network Comparison Testprint.psychnet_nct
Print a redundancy resultprint.psychnet_redundancy
Print a split-half reliability resultprint.psychnet_reliability
Per-group framework resultsas.data.frame.psychnet_result_group print.psychnet_result_group
Print a centrality-stability resultprint.psychnet_stability
Estimate a psychometric networkpsychnet
Detect redundant node pairs ("goldbricker")redundancy
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