Learn R Programming

⚠️There's a newer version (2.2.1) of this package.Take me there.

An R package for estimating a Count Data Model With Social Interactions

The CDatanet package implements a count data model with social interactions and a dyadic linking model to deal with the endogeneity of the social network. It includes all functions for the replication of the results in Houndetoungan (2020). The exact replication codes of the Monte Carlo study are located in the folder test.

Installation

Requirements

  • CDatanet package needs R version 3.0.0 or later which can be installed on Linux, Mac and Windows. See CRAN for installation details.
  • devtools package should be installed on R. If not already done, install devtools using the code install.packages("devtools").
  • (Only for windows users) Windows users should install Rtools compatible with their R version.

How to install

CDatanet package can be installed from this GitHub repos using the install_github function of the devtools package. All the dependencies will also be installed automatically.

library(devtools)
install_github("ahoundetoungan/CDatanet")

The option build_vignettes = TRUE can be added if one desires to install the vignettes (this will take several minutes).

Load CDatanet

Once the installation is done, CDatanet can be loaded as a common package in R.

library(CDatanet)

How to use CDatanet

I provide a vignette that fully documents the package through simple and practical examples. Moreover, each function of the package has a help page accessible using ?name-of-the-function.

Copy Link

Version

Install

install.packages('CDatanet')

Monthly Downloads

320

Version

0.0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Elys<c3><a9>e Aristide Houndetoungan

Last Published

February 17th, 2021

Functions in CDatanet (0.0.1)

SARML

Estimate SAR model
netformation

Estimate Network Formation Model
CDnetNPL

Estimate Count Data Model with Social Interactions using NPL Method
CDatanet-package

The CDatanet package
summary.SARML

Summarize SAR Model
summary.CDnetNPL

Summarize Count Data Model with Social Interactions
simSARnet

Simulate data from the linear-in-mean Model with Social Interactions
SARTML

Estimate SART model
simTobitnet

Simulate data from the Tobit Model with Social Interactions
summary.SARTML

Summarize SART Model
simCDnet

Simulate data from Count Data Model with Social Interactions