bn(dat, method = c("mple.triad", "mple.dyad", "mple.edge", "mtle"), param.seed = NULL, param.fixed = NULL, optim.method = "BFGS", optim.control = list(), epsilon = 1e-05)
optim
. optim
. bn
.
$$ \Pr(e_{ij}|T) = 1-\left(1-\Pr(B_e)\right) \prod_k \left(1-\Pr(B_k|T)\right) $$
where $T$ is the current state of the trace, $B_e$ is the a Bernoulli event corresponding to the baseline probability of $e_ij$, and the $B_k$ are "bias events." Bias events are taken to be independent Bernoulli trials, given $T$, such that $e_ij$ is observed with certainty if any bias event occurs. The specification of a biased net model, then, involves defining the various bias events (which, in turn, influence the structure of the network).
Although other events have been proposed, the primary bias events employed in current biased net models are the "parent bias" (a tendency to return nominations); the "sibling bias" (a tendency to nominate alters who were nominated by the same third party); and the "double role bias" (a tendency to nominate alters who are both siblings and parents). These bias events, together with the baseline edge events, are used to form the standard biased net model. It is standard to assume homogeneity within bias class, leading to the four parameters $pi$ (probability of a parent bias event), $sigma$ (probability of a sibling bias event), $rho$ (probability of a double role bias event), and $d$ (probability of a baseline event).
Unfortunately, there is no simple expression for the likelihood of a graph given these parameters (and hence, no basis for likelihood based inference). However, Skvoretz et al. have derived a class of maximum pseudo-likelihood estimators for the the biased net model, based on local approximations to the likelihood at the edge, dyad, or triad level. These estimators may be employed within bn
by selecting the appropriate MPLE for the method argument. Alternately, it is also possible to derive expected triad census rates for the biased net model, allowing an estimator which maximizes the likelihood of the observed triad census (essentially, a method of moments procedure). This last may be selected via the argument mode="mtle"
. In addition to estimating model parameters, bn
generates predicted edge, dyad, and triad census statistics, as well as structure statistics (using the Fararo-Sunshine recurrence). These can be used to evaluate goodness-of-fit.
print
, summary
, and plot
methods are available for bn
objects. See rgbn
for simulation from biased net models.
Rapoport, A. (1957). ``A contribution to the theory of random and biased nets.'' Bulletin of Mathematical Biophysics, 15, 523-533.
Skvoretz, J.; Fararo, T.J.; and Agneessens, F. (2004). ``Advances in biased net theory: definitions, derivations, and estimations.'' Social Networks, 26, 113-139.
rgbn
, structure.statistics
#Generate a random graph
g<-rgraph(25)
#Fit a biased net model, using the triadic MPLE
gbn<-bn(g)
#Examine the results
summary(gbn)
plot(gbn)
#Now, fit a model containing only a density parameter
gbn<-bn(g,param.fixed=list(pi=0,sigma=0,rho=0))
summary(gbn)
plot(gbn)
Run the code above in your browser using DataLab