Welcome to the Documentation for NetworkFm!
NetworkFm is a Python package for the econometric analysis of the dyadic network formation models with degree heterogeneity.
- This package accompanies the paper:
Yan, Zizhong; Li, Jingrong; Zhang, Yi (2026). Penalized Likelihood for Dyadic Network Formation Models with Degree Heterogeneity. arXiv e-prints, arXiv:2605.00771.
Project’s GitHub homepage: github.com/zizhongyan/networkfm
If you are new to the package, I recommend starting with Getting started, then working through the Examples section. The API reference section for detailed function/class documentation.
Table of Contents
- Getting Started
- Prerequisites
- Installation options
- Main entry:
networkfm.fit()- Inputs: adjacency matrix
G - Inputs: regressors
XandZ - Model selection:
directedandmutual - Bias correction method:
bc_method - Estimation algorithm:
algorithm - Separated nodes:
drop_separation - Output control:
silent - Average partial effects:
ape - Tetrad/quadruple
indices - Starting values:
sv - Returned object and key attributes
- Inputs: adjacency matrix
- Where to go next
Code maintainer
Zizhong Yan, Institute for Economic and Social Research (IESR), Jinan University, Guangzhou, China. Email: helloyzz@gmail.com