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 |
Glist |
adjacency matrix. For networks consisting of multiple subnets, |
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 |
group |
the vector indicating the individual groups (see function |
tol |
the tolerance value used in the Fixed Point Iteration Method to compute the expectancy of |
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 |
|
GEy |
the average of |
aEy |
the sampling mean of |
se.aEy |
the standard error of the sampling mean of |