The CDatanet package simulates and estimates peer effect models and network formation models. The class of peer effect models includes the linear-in-means models (Lee, 2004; Lee et al., 2010), the Tobit models (Xu and Lee, 2015), and discrete numerical data models (Houndetoungan, 2024). The network formation models include pair-wise regressions with degree heterogeneity (Graham, 2017; Yan et al., 2019) and exponential random graph models (Mele, 2017).
CDatanet package includes all functions for the replication of the results in Houndetoungan (2024). The exact replication codes are located in the folder test.
See CRAN version here.
CDatanet can be directly installed from CRAN.
install.packages("CDatanet")
It may be possible that I updated the package without submitting the new version to CRAN. The latest version (but not necessary stable) of CDatanet can be installed from this GitHub repos.
library(remotes)
install_github("ahoundetoungan/CDatanet")