simcdEy {CDatanet}R Documentation

Counterfactual analyses with count data models and social interactions

Description

simcdpar computes the average expected outcomes for count data models with social interactions and standard errors using the Delta method. This function can be used to examine the effects of changes in the network or in the control variables.

Usage

simcdEy(object, Glist, data, group, tol = 1e-10, maxit = 500, S = 1000)

Arguments

object

an object of class summary.cdnet, output of the function summary.cdnet or class cdnet, output of the function cdnet.

Glist

adjacency matrix. For networks consisting of multiple subnets, Glist can be a list of subnets with the m-th element being an ns*ns adjacency matrix, where ns is the number of nodes in the m-th subnet. For heterogenous peer effects (e.g., boy-boy, boy-girl friendship effects), the m-th element can be a list of many ns*ns adjacency matrices corresponding to the different network specifications (see Houndetoungan, 2024). For heterogeneous peer effects in the case of a single large network, Glist must be a one-item list. This item must be a list of many specifications of large networks.

data

an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which summary.cdnet is called.

group

the vector indicating the individual groups (see function cdnet). If missing, the former group saved in object will be used.

tol

the tolerance value used in the Fixed Point Iteration Method to compute the expectancy of y. The process stops if the \ell_1-distance between two consecutive E(y) is less than tol.

maxit

the maximal number of iterations in the Fixed Point Iteration Method.

S

number of simulations to be used to compute integral in the covariance by important sampling.

Value

A list consisting of:

Ey

E(y), the expectation of y.

GEy

the average of E(y) friends.

aEy

the sampling mean of E(y).

se.aEy

the standard error of the sampling mean of E(y).

See Also

simcdnet


[Package CDatanet version 2.2.0 Index]