Learn R Programming

CDatanet (version 0.0.1)

summary.CDnetNPL: Summarize Count Data Model with Social Interactions

Description

Summary and print methods for the class CDnetNPL as returned by the function CDnetNPL.

Usage

# S3 method for CDnetNPL
summary(object, cov.ctr = list(), Glist, data, ...)

# S3 method for summary.CDnetNPL print(x, ...)

# S3 method for CDnetNPL print(x, ...)

# S3 method for summary.CDnetNPLs print(x, ...)

Arguments

object

an object of class CDnetNPL, output of the function CDnetNPL.

cov.ctr

list of control values for the covariance containing two integers, R and S. The covariance summations from 0 to infinity. But the summed elements decreases exponentially. The summations are approximated by summations from 0 to R. The covariance also requires computing \(\Phi(x) - \Phi(x - 1)\), where \(\Phi\) is the normal' probability density function. This is done using important sampling, where S numbers are generated form the uniform distribution.

Glist

the adjacency matrix or list sub-adjacency matrix. If missing make, sure that the object provided to the function CDnetNPL is available in .GlobalEnv (see detail - codedata section of CDnetNPL).

data

dataframe containing the explanatory variables. If missing make, sure that the object provided to the function CDnetNPL is available in .GlobalEnv (see detail - codedata section of CDnetNPL).

...

further arguments passed to or from other methods.

x

an object of class summary.CDnetNPL, output of the function summary.CDnetNPL, class summary.CDnetNPLs, list of outputs of the function summary.CDnetNPL (when the model is estimated many times to control for the endogeneity) or class CDnetNPL of the function CDnetNPL.

Value

A list consisting of:

M

number of sub-networks.

n

number of individuals in each network.

iteration

number of iterations performed by the NPL algorithm.

estimate

NPL estimator.

likelihood

pseudo-likelihood value.

yb

ybar (see details), expectation of y.

Gyb

average of the expectation of y among friends.

steps

step-by-step output as returned by the optimizer.

cov

covariance matrix of the estimate.

meffects

vector of marginal effects.

cov.me

covariance matrix of the marginal effects.

cov.ctr

returned value of the control values for the covariance.

codedata

list of formula, name of the object Glist, number of friends in the network and name of the object data.