Package: nett 1.0.0

nett: Network Analysis and Community Detection

Features tools for the network data analysis and community detection. Provides multiple methods for fitting, model selection and goodness-of-fit testing in degree-corrected stochastic blocks models. Most of the computations are fast and scalable for sparse networks, esp. for Poisson versions of the models. Implements the following: Amini, Chen, Bickel and Levina (2013) <doi:10.1214/13-AOS1138> Bickel and Sarkar (2015) <doi:10.1111/rssb.12117> Lei (2016) <doi:10.1214/15-AOS1370> Wang and Bickel (2017) <doi:10.1214/16-AOS1457> Zhang and Amini (2020) <arxiv:2012.15047> Le and Levina (2022) <doi:10.1214/21-EJS1971>.

Authors:Arash A. Amini [aut, cre], Linfan Zhang [aut]

nett_1.0.0.tar.gz
nett_1.0.0.zip(r-4.5)nett_1.0.0.zip(r-4.4)nett_1.0.0.zip(r-4.3)
nett_1.0.0.tgz(r-4.4-x86_64)nett_1.0.0.tgz(r-4.4-arm64)nett_1.0.0.tgz(r-4.3-x86_64)nett_1.0.0.tgz(r-4.3-arm64)
nett_1.0.0.tar.gz(r-4.5-noble)nett_1.0.0.tar.gz(r-4.4-noble)
nett_1.0.0.tgz(r-4.4-emscripten)nett_1.0.0.tgz(r-4.3-emscripten)
nett.pdf |nett.html
nett/json (API)

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

Peer review:

Bug tracker:https://github.com/aaamini/nett/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

5.48 score 8 stars 19 scripts 167 downloads 38 exports 8 dependencies

Last updated 2 years agofrom:35b0441c8c. Checks:OK: 4 NOTE: 5. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 16 2024
R-4.5-win-x86_64NOTENov 16 2024
R-4.5-linux-x86_64NOTENov 16 2024
R-4.4-win-x86_64NOTENov 16 2024
R-4.4-mac-x86_64NOTENov 16 2024
R-4.4-mac-aarch64NOTENov 16 2024
R-4.3-win-x86_64OKNov 16 2024
R-4.3-mac-x86_64OKNov 16 2024
R-4.3-mac-aarch64OKNov 16 2024

Exports:%>%adj_spec_testbethe_hessian_selectcompute_block_sumscompute_confusion_matrixcompute_mutual_infoestim_dcsbmeval_dcsbm_biceval_dcsbm_likeeval_dcsbm_loglrextract_largest_ccextract_low_deg_compfast_cplfast_sbmgen_rand_connget_dcsbm_exav_deglabel_mat2veclabel_vec2matnac_testplot_deg_distplot_netplot_rocplot_smooth_profilepp_connprintfrsympermsample_dcersample_dclvmsample_dcppsample_dcsbmsample_tdcsbmsimulate_rocsinkhorn_knoppsnac_resamplesnac_selectsnac_testspec_clustspec_repr

Dependencies:codetoolsforeachiteratorslatticemagrittrMatrixRcppRcppArmadillo

Community detection

Rendered fromCommunity_Detection.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-09-24
Started: 2020-12-29

Exploring Community Structure

Rendered fromexplore-comm.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-10-01
Started: 2021-01-01

A hard DCSBM testing problem

Rendered fromhard_dcsbm_testing.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-09-30
Started: 2021-01-21

Visualization

Rendered fromVisualization.Rmdusingknitr::rmarkdownon Nov 16 2024.

Last update: 2022-10-22
Started: 2020-12-17

Readme and manuals

Help Manual

Help pageTopics
Adjusted spectral testadj_spec_test
Beth-Hessian model selectionbethe_hessian_select
Block sum of an adjacency matrixcompute_block_sums
Compute confusion matrixcompute_confusion_matrix
Compute normalized mutual information (NMI)compute_mutual_info
Estimate model parameters of a DCSBMestim_dcsbm
Compute BIC scoreeval_dcsbm_bic
Log likelihood of a DCSBM (fast with poi = TRUE)eval_dcsbm_like
Log-likelihood ratio of two DCSBMs (fast with poi = TRUE)eval_dcsbm_loglr
Extract largest componentextract_largest_cc
Extract low-degree componentextract_low_deg_comp
CPL algorithm for community detection (fast)fast_cpl
Sample from a SBM (fast)fast_sbm
Generate randomly permuted connectivity matrixgen_rand_conn
Calculate the expected average degree of a DCSBMget_dcsbm_exav_deg
Convert label matrix to vectorlabel_mat2vec
Convert label vector to matrixlabel_vec2mat
NAC testnac_test
Plot degree distributionplot_deg_dist
Plot a networkplot_net
Plot ROC curvesplot_roc
Plot community profilesplot_smooth_profile
Political blogs networkpolblogs
Generate planted partition (PP) connectivity matrixpp_conn
The usual "printf" functionprintf
Generate random symmetric permutation matrixrsymperm
Sample from a DCERsample_dcer
Sample from a DCLVMsample_dclvm
Sample from a DCPPsample_dcpp
Sample from a DCSBMsample_dcsbm
Sample truncated DCSBM (fast)sample_tdcsbm
Simulate data to estimate ROC curvessimulate_roc
Sinkhorn-Knopp matrix scalingsinkhorn_knopp
Resampled SNAC+snac_resample
Estimate community number with SNAC+snac_select
SNAC testsnac_test
Spectral clustering (fast)spec_clust
Spectral Representationspec_repr