Package: modnets 0.9.0.9000

modnets: Modeling Moderated Networks

Methods for modeling moderator variables in cross-sectional, temporal, and multi-level networks. Includes model selection techniques and a variety of plotting functions. Implements the methods described by Swanson (2020) <https://www.proquest.com/openview/d151ab6b93ad47e3f0d5e59d7b6fd3d3>.

Authors:Trevor Swanson [aut, cre]

modnets_0.9.0.9000.tar.gz
modnets_0.9.0.9000.zip(r-4.5)modnets_0.9.0.9000.zip(r-4.4)modnets_0.9.0.9000.zip(r-4.3)
modnets_0.9.0.9000.tgz(r-4.4-any)modnets_0.9.0.9000.tgz(r-4.3-any)
modnets_0.9.0.9000.tar.gz(r-4.5-noble)modnets_0.9.0.9000.tar.gz(r-4.4-noble)
modnets_0.9.0.9000.tgz(r-4.4-emscripten)modnets_0.9.0.9000.tgz(r-4.3-emscripten)
modnets.pdf |modnets.html
modnets/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/tswanson222/modnets/issues

Datasets:

On CRAN:

43 exports 0.63 score 123 dependencies 6 scripts 199 downloads

Last updated 3 years agofrom:b118381885. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 02 2024
R-4.5-winOKSep 02 2024
R-4.5-linuxOKSep 02 2024
R-4.4-winOKSep 02 2024
R-4.4-macOKSep 02 2024
R-4.3-winOKSep 02 2024
R-4.3-macOKSep 02 2024

Exports:bootNetcentAutocentPlotcentTableclustAutoclustPlotclustTablecompareVARcondPlotcscoeffitNetworkgetFitCIsintsPlotlmerVARmlGVARmlGVARsimmnetPowerSimmodLLmodSelectmodTablenetnetIntsordinalizeplotBootplotCentralityplotCoefsplotModsplotNetplotNet2plotNet3plotPowerplotPvalsplotStabilitypredictNetresamplesampleSizeselectedsimNetSURfitSURllSURnetSURtablevarSelect

Dependencies:abindbackportsbase64encbootbroombslibcachemcarcarDatacheckmatecliclustercodetoolscolorspacecorpcorcowplotcpp11data.tableDerivdigestdoBydplyrevaluatefansifarverfastmapfdrtoolfontawesomeforeachforeignFormulafsgenericsggplot2glassoglinternetglmnetglueGPArotationgridExtragtablegtoolshighrHmischtmlTablehtmltoolshtmlwidgetsigraphinteractionTestisobanditeratorsjpegjquerylibjsonliteknitrlabelinglatticelavaanleapslifecyclelme4lmerTestlmtestmagrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkmimeminqamnormtmodelrmunsellmvtnormnlmenloptrnnetnumDerivpbapplypbivnormpbkrtestpillarpkgconfigplyrpngpsychpurrrqgraphquadprogquantregR6rappdirsRColorBrewerRcppRcppEigenreshape2rlangrmarkdownrpartrstudioapisandwichsassscalesshapeSparseMstringistringrsurvivalsystemfittibbletidyrtidyselecttinytexutf8vctrsviridisviridisLitewithrxfunyamlzoo

Readme and manuals

Help Manual

Help pageTopics
bfi databfiDat
Bootstrapping network estimation for moderated networksbootNet
Descriptive statistics for 'bootNet' objectsbootNetDescriptives cscoef summary.bootNet
Node centrality, clustering coefficients, and shortest path lengthscentAuto CentClust clustAuto
Create table of centrality values or clustering coefficientsCentralityAndClustering centTable clustTable
Plots for node centrality values or clustering coefficientscentPlot CentralityAndClusteringPlots clustPlot plotCentrality
Compare two to three 'lmerVAR' modelscompareVAR
Conditional effects plotcondPlot
Fit cross-sectional and idiographic moderated network modelsfitNetwork
Provides model coefficients with confidence intervalsgetFitCIs
Simulated GGM dataggmDat
Simulated temporal network datagvarDat
Plot confidence intervals for interaction termsintsPlot
Mixed-effects modeling for the GVAR in multilevel datalmerVAR
Log-likelihood functions and Likelihood Ratio Tests for moderated networksLogLikelihood modLL modTable SURll SURtable
Fit GVAR models with multilevel datamlGVAR
Simulated multi-level network datamlgvarDat
Main workhorse for simulating VAR and mlGVAR datamlGVARsim
Power simulator for cross-sectional and idiographic networksmnetPowerSim
modnets: Modeling Moderated Networksmodnets
Select a model based on output from 'resample'modSelect
Get adjacency matrices from fit objectsnet netInts
Convert continuous variables into ordinal variablesordinalize
Plot method for output of resample functionplot.resample
Plot 'bootNet' outputsplot.bootNet plotBoot
Plot model coefficients with confidence intervalsplotCoefs
Plot conditional networks at different levels of the moderatorplotMods
Plot moderated and unmoderated network modelsplot.ggm plot.ggmSim plot.GVARsim plot.lmerVAR plot.mlGVAR plot.mlGVARsim plot.SURnet plotNet
Plot temporal and contemporaneous networks in the same windowplotNet2
Plot temporal, contemporaneous, and between-subject networksplotNet3
Plot results of power simulationsplot.mnetPower plotPower
Plot the ECDF of p-values from resamplingplotPvals
Plot stability selection paths for a given outcomeplotStability
Calculate prediction error from network modelspredictNet
Bootstrapping or multi-sample splits for variable selectionresample
Reports the minimum sample size required to fit a network modelsampleSize
Shows which variables were selected for each node of a networkselected
Simulate network structure and datasimNet
Descriptive statistics for power simulation resultssummary.mnetPower
Fit SUR models with or without constraintsSURfit
Creates temporal and contemporaneous network of SUR resultsSURnet
Variable selection for moderated networksvarSelect