ghypernet1.1.2 package

Fit and Simulate Generalised Hypergeometric Ensembles of Graphs

adj2el

Maps adjacency matrix to edgelist

as.ghype

Map list to ghype object

bccm

Fitting bccm models

BootstrapProperty

BootstrapProperty computes igraph analytics function on ensemble

checkGraphtype

Check graph input type (for whether it's a graph or a edgelist).

coef.nrm

Extraction method for coefficients of models of class 'nrm'.

compute_xi

Auxiliary function. Computes combinatorial matrix.

conf.test

Test regular (gnp) vs configuration model

contacts.adj

Highschool contact network adjacency matrix

coxsnellR2

Computes Cox and Snell pseudo R-squared for nrm models.

create_predictors.list

Create a nrmpredictor object from list

create_predictors

Create a nrmpredictor object from passed argument

CreateIgGraphs

Convert a list of adjacency matrices to a list of igraph graphs.

dmvhyper_base

Log PMF of multivariate hypergeometric

el2adj

Maps edgelist to adjacency matrix

extract.nrm.cluster

Extract details from statistical models for table construction. The fu...

FitOmega

Fit propensity matrix for full model

get_zero_dummy

Create a dummy variable to encode zero values of another variable.

ghype

Fitting gHypEG models

gof.test

Perform a goodness-of-fit test

homophily_stat

Calculate homophily in multi-edge graphs.

isNetwork

Test null model vs full ghype.

JnBlock

Fisher Information matrix for estimators in block models.

link_significance

Estimate statistical deviations from ghype model

logl

General method to compute log-likelihood for ghype models.

logLik.ghype

Extract Log-Likelihood

loglratio

Compute log-likelihood ratio for ghype models.

lr.test

Perform likelihood ratio test between two ghype models.

mat2vec.ix

Auxiliary function, gives mask for matrix for directed, undirected etc...

mcfaddenR2

Computes Mc Fadden pseudo R-squared.

nr.ci

Confidence intervals for nrm models.

nr.significance

Computes the significance of more complex model against a simpler mode...

nrm_choose

Selects the best set of predictors among the given sets by means of AI...

nrm_selection

Perform AIC forward selection for nrm.

nrm

Fitting gHypEG regression models for multi-edge networks.

predict.nrm

Method to predict the expected values of a nrm model

reciprocity_stat

Calculate weighted reciprocity change statistics for multi-edge graphs...

regularm

Fit the gnm model

residuals.nrm

Method to compute residuals of nrm models

rghype

Generate random realisations from ghype model.

RMSE

Computes the Root Mean Squared Error

RMSLE

Computes the Root Mean Squared Logged Error

rmvhyper_base

Random samples from multivariate hypergeometric

scm

Fit the Soft-Configuration Model

sharedPartner_stat

Calculate (un-)weighted shared partner change statistics for multi-edg...

summary.nrm_selection

Summary method for elements of class 'nrm_selection'.

summary.nrm

Summary method for elements of class 'nrm'.

vec2mat

Auxiliary function, produces matrix from vector

Provides functions for model fitting and selection of generalised hypergeometric ensembles of random graphs (gHypEG). To learn how to use it, check the vignettes for a quick tutorial. Please reference its use as Casiraghi, G., Nanumyan, V. (2019) <doi:10.5281/zenodo.2555300> together with those relevant references from the one listed below. The package is based on the research developed at the Chair of Systems Design, ETH Zurich. Casiraghi, G., Nanumyan, V., Scholtes, I., Schweitzer, F. (2016) <doi:10.48550/arXiv.1607.02441>. Casiraghi, G., Nanumyan, V., Scholtes, I., Schweitzer, F. (2017) <doi:10.1007/978-3-319-67256-4_11>. Casiraghi, G., (2017) <doi:10.48550/arXiv.1702.02048>. Brandenberger, L., Casiraghi, G., Nanumyan, V., Schweitzer, F. (2019) <doi:10.1145/3341161.3342926>. Casiraghi, G. (2019) <doi:10.1007/s41109-019-0241-1>. Casiraghi, G., Nanumyan, V. (2021) <doi:10.1038/s41598-021-92519-y>. Casiraghi, G. (2021) <doi:10.1088/2632-072X/ac0493>.